Skip to content

Firefly III: a personal finances manager

Fix tests.

James Cole84f0ee183c56
diff --git a/tests/Feature/Controllers/Transaction/BulkControllerTest.php b/tests/Feature/Controllers/Transaction/BulkControllerTest.php
index e189df4f0f..89eb24a146 100644
--- a/tests/Feature/Controllers/Transaction/BulkControllerTest.php
+++ b/tests/Feature/Controllers/Transaction/BulkControllerTest.php
@@ -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');
diff --git a/tests/Feature/Controllers/Transaction/MassControllerTest.php b/tests/Feature/Controllers/Transaction/MassControllerTest.php
index 8348c89c0e..2f49c1a748 100644
--- a/tests/Feature/Controllers/Transaction/MassControllerTest.php
+++ b/tests/Feature/Controllers/Transaction/MassControllerTest.php
@@ -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']);