Optimize test code.

This commit is contained in:
James Cole
2015-04-07 18:52:15 +02:00
parent f10f5d30bf
commit 05670cf393
4 changed files with 30 additions and 33 deletions

View File

@@ -174,7 +174,7 @@ class AccountControllerTest extends TestCase
// mock!
Amount::shouldReceive('getCurrencyCode')->once()->andReturn('A');
$repository = $this->mock('FireflyIII\Repositories\Account\AccountRepositoryInterface');
$repository->shouldReceive('getJournals')->andReturn(new LengthAwarePaginator([],0,10));
$repository->shouldReceive('getJournals')->andReturn(new LengthAwarePaginator([], 0, 10));
// get edit page:
$this->call('GET', '/accounts/show/' . $this->account->id);