mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-24 22:48:18 +00:00
Fixed tests.
This commit is contained in:
@@ -29,6 +29,7 @@ class HomeControllerTest extends TestCase
|
||||
// mock preferences helper:
|
||||
$preferences = $this->mock('Firefly\Helper\Preferences\PreferencesHelperInterface');
|
||||
$preferences->shouldReceive('get')->with('frontpageAccounts',[])->andReturn(new \Preference)->once();
|
||||
$preferences->shouldReceive('get')->with('viewRange', 'week')->once()->andReturn('week');
|
||||
|
||||
// call
|
||||
$this->call('GET', '/');
|
||||
@@ -37,4 +38,8 @@ class HomeControllerTest extends TestCase
|
||||
$this->assertResponseOk();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
Mockery::close();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user