Fixed tests.

This commit is contained in:
James Cole
2015-05-20 17:04:53 +02:00
parent f07e4dc711
commit 29652108f0
2 changed files with 3 additions and 3 deletions

View File

@@ -98,7 +98,7 @@ class JsonControllerTest extends TestCase
$this->be($user);
$repository = $this->mock('FireflyIII\Helpers\Report\ReportQueryInterface');
$repository->shouldReceive('incomeInPeriod')->andReturn(new Collection);
$repository->shouldReceive('incomeInPeriodCorrected')->andReturn(new Collection);
Amount::shouldReceive('format')->andReturn('xx');
Amount::shouldReceive('getCurrencyCode')->andReturn('X');
@@ -112,7 +112,7 @@ class JsonControllerTest extends TestCase
$this->be($user);
$repository = $this->mock('FireflyIII\Helpers\Report\ReportQueryInterface');
$repository->shouldReceive('expenseInPeriod')->andReturn(new Collection);
$repository->shouldReceive('expenseInPeriodCorrected')->andReturn(new Collection);
Amount::shouldReceive('format')->andReturn('xx');
Amount::shouldReceive('getCurrencyCode')->andReturn('X');