Expand tests

This commit is contained in:
James Cole
2018-02-19 19:45:13 +01:00
parent 6b32213735
commit e389d0f7fa
3 changed files with 54 additions and 3 deletions

View File

@@ -112,7 +112,7 @@ class SingleControllerTest extends TestCase
// mock
$repository = $this->mock(JournalRepositoryInterface::class);
$repository->shouldReceive('first')->once()->andReturn(new TransactionJournal);
$repository->shouldReceive('delete')->once();
$repository->shouldReceive('destroy')->once();
$this->session(['transactions.delete.uri' => 'http://localhost']);
$this->be($this->user());