Fix tests

This commit is contained in:
James Cole 2017-07-30 13:42:38 +02:00
parent c39c5492ea
commit ef357ab6e5
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 1 additions and 2 deletions

View File

@ -150,6 +150,7 @@ class ImportControllerTest extends TestCase
$configurator->shouldReceive('setJob')->once();
$configurator->shouldReceive('isJobConfigured')->once()->andReturn(false);
$configurator->shouldReceive('configureJob')->once()->andReturn(false);
$configurator->shouldReceive('getWarningMessage')->once()->andReturn('');
$this->be($this->user());

View File

@ -86,8 +86,6 @@ class TagControllerTest extends TestCase
$repository = $this->mock(TagRepositoryInterface::class);
$journalRepos = $this->mock(JournalRepositoryInterface::class);
$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);
$repository->shouldReceive('tagAllowAdvance')->once()->andReturn(false);
$repository->shouldReceive('tagAllowBalancing')->once()->andReturn(false);
$this->be($this->user());
$response = $this->get(route('tags.edit', [1]));