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:
@@ -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');
|
||||
|
||||
|
Reference in New Issue
Block a user