Fix tests

This commit is contained in:
James Cole
2017-09-01 21:54:17 +02:00
parent 5e08461385
commit 95e91b9af8
3 changed files with 37 additions and 39 deletions

View File

@@ -58,8 +58,6 @@ class TransactionControllerTest extends TestCase
$collector->shouldReceive('getPaginatedJournals')->andReturn(new LengthAwarePaginator([], 0, 10));
$collector->shouldReceive('getJournals')->andReturn(new Collection);
Steam::shouldReceive('positive')->once()->andReturn('1');
$this->be($this->user());
$response = $this->get(route('transactions.index', ['transfer']));
$response->assertStatus(200);
@@ -119,8 +117,6 @@ class TransactionControllerTest extends TestCase
$collector->shouldReceive('getPaginatedJournals')->andReturn(new LengthAwarePaginator([], 0, 10));
$collector->shouldReceive('getJournals')->andReturn(new Collection);
Steam::shouldReceive('positive')->once()->andReturn('1');
$this->be($this->user());
$response = $this->get(route('transactions.index', ['transfer', '2016-01-01']));
$response->assertStatus(200);