Fixed more tests.

This commit is contained in:
James Cole
2015-05-17 10:47:12 +02:00
parent 01cd3333e4
commit 6280448dfb
4 changed files with 3 additions and 117 deletions

View File

@@ -53,6 +53,7 @@ class JsonControllerTest extends TestCase
$bills->shouldReceive('getActiveBills')->andReturn($collection);
$bills->shouldReceive('getRanges')->andReturn($ranges);
$bills->shouldReceive('getJournalsInRange')->andReturn(new Collection);
$bills->shouldReceive('billPaymentsInRange')->andReturn(12);
$accounts->shouldReceive('getCreditCards')->andReturn($ccs);
$accounts->shouldReceive('getTransfersInRange')->andReturn(new Collection);
Amount::shouldReceive('format')->andReturn('xx');
@@ -111,7 +112,7 @@ class JsonControllerTest extends TestCase
$this->be($user);
$repository = $this->mock('FireflyIII\Helpers\Report\ReportQueryInterface');
$repository->shouldReceive('journalsByExpenseAccount')->andReturn(new Collection);
$repository->shouldReceive('expenseInPeriod')->andReturn(new Collection);
Amount::shouldReceive('format')->andReturn('xx');
Amount::shouldReceive('getCurrencyCode')->andReturn('X');