mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-09 20:11:22 +00:00
Fixed all tests.
This commit is contained in:
@@ -26,10 +26,8 @@ class HomeControllerTest extends TestCase
|
||||
$accounts->shouldReceive('count')->andReturn(0);
|
||||
$accounts->shouldReceive('getActiveDefault')->andReturn([]);
|
||||
|
||||
// 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', '/');
|
||||
@@ -73,7 +71,6 @@ class HomeControllerTest extends TestCase
|
||||
|
||||
$preferences = $this->mock('Firefly\Helper\Preferences\PreferencesHelperInterface');
|
||||
$preferences->shouldReceive('get')->with('frontpageAccounts',[])->andReturn($pref)->once();
|
||||
$preferences->shouldReceive('get')->with('viewRange', 'week')->once()->andReturn('week');
|
||||
|
||||
// call
|
||||
$this->call('GET', '/');
|
||||
|
||||
Reference in New Issue
Block a user