Fix a few tests.

This commit is contained in:
James Cole
2018-03-23 05:31:30 +01:00
parent 3b735c7533
commit fb0a0c3fb5
18 changed files with 198 additions and 165 deletions

View File

@@ -113,6 +113,7 @@ class AttachmentControllerTest extends TestCase
{
$attachRepository = $this->mock(AttachmentRepositoryInterface::class);
$journalRepos = $this->mock(JournalRepositoryInterface::class);
$attachRepository->shouldReceive('getNoteText')->andReturn('OK');
$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);
$this->be($this->user());
$response = $this->get(route('attachments.edit', [1]));