Fixed tests.

This commit is contained in:
James Cole
2015-05-15 20:15:58 +02:00
parent d5a154d2e6
commit 58365121a3
3 changed files with 6 additions and 6 deletions

View File

@@ -313,7 +313,7 @@ class GoogleChartControllerTest extends TestCase
$repository = $this->mock('FireflyIII\Helpers\Report\ReportQueryInterface');
// expect!
$repository->shouldReceive('incomeByPeriod')->andReturn($journals);
$repository->shouldReceive('incomeInPeriod')->andReturn($journals);
$repository->shouldReceive('journalsByExpenseAccount')->andReturn($journals);
Preferences::shouldReceive('get')->withArgs(['showSharedReports', false])->once()->andReturn($preference);
@@ -342,7 +342,7 @@ class GoogleChartControllerTest extends TestCase
$repository = $this->mock('FireflyIII\Helpers\Report\ReportQueryInterface');
// expect!
$repository->shouldReceive('incomeByPeriod')->andReturn($journals);
$repository->shouldReceive('incomeInPeriod')->andReturn($journals);
$repository->shouldReceive('journalsByExpenseAccount')->andReturn($journals);
Preferences::shouldReceive('get')->withArgs(['showSharedReports', false])->once()->andReturn($preference);