Fix tests.

This commit is contained in:
James Cole 2018-03-04 09:49:15 +01:00
parent 7eedd6c2fc
commit 84f0ee183c
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 2 additions and 1 deletions

View File

@ -164,7 +164,7 @@ class BulkControllerTest extends TestCase
->withArgs([Mockery::any(), $data['budget_id']]);
$repository->shouldReceive('updateTags')->times(4)->andReturn(new TransactionJournal())
->withArgs([Mockery::any(), $tags]);
->withArgs([Mockery::any(), ['tags' => $tags]]);
$route = route('transactions.bulk.update');

View File

@ -216,6 +216,7 @@ class MassControllerTest extends TestCase
$repository->shouldReceive('update')->once();
$repository->shouldReceive('find')->once()->andReturn($deposit);
$repository->shouldReceive('getTransactionType')->andReturn('Deposit');
$repository->shouldReceive('getNoteText')->andReturn('Some note');
$this->session(['transactions.mass-edit.uri' => 'http://localhost']);