Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fixed tests.
James Cole9d142aa8b0da
diff --git a/app/tests/controllers/ChartControllerTest.php b/app/tests/controllers/ChartControllerTest.phpindex ca59ba39dc..186d298dda 100644--- a/app/tests/controllers/ChartControllerTest.php+++ b/app/tests/controllers/ChartControllerTest.php@@ -89,6 +89,9 @@ class ChartControllerTest extends TestCase$start = new \Carbon\Carbon;$end = new \Carbon\Carbon;+ // mock preferences & pref:+ $pref = $this->mock('Preference');+ $pref->shouldReceive('getAttribute', 'data')->andReturn([]);// mock toolkit@@ -96,8 +99,8 @@ class ChartControllerTest extends TestCase$toolkit->shouldReceive('getDateRange')->andReturn([$start, $end]);//// // mock preference?-// $preferences = $this->mock('Firefly\Helper\Preferences\PreferencesHelperInterface');-// $preferences->shouldReceive('get')->with('viewRange', '1M')->once()->andReturn($pref);+ $preferences = $this->mock('Firefly\Helper\Preferences\PreferencesHelperInterface');+ $preferences->shouldReceive('get')->with('viewRange', '1M')->once()->andReturn($pref);////// // mock toolkit:@@ -111,7 +114,6 @@ class ChartControllerTest extends TestCase////-// call$this->call('GET', '/chart/home/categories');