From 84f0ee183c56b2337b81ad0993dd687c8f49be55 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 4 Mar 2018 09:49:15 +0100 Subject: [PATCH] Fix tests. --- tests/Feature/Controllers/Transaction/BulkControllerTest.php | 2 +- tests/Feature/Controllers/Transaction/MassControllerTest.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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']);