From 23e540a57a8df7d03e631f35877d6bc288f4033a Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 17 Feb 2018 10:50:47 +0100 Subject: [PATCH] Fix missing methods in account controller test --- tests/Feature/Controllers/AccountControllerTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Feature/Controllers/AccountControllerTest.php b/tests/Feature/Controllers/AccountControllerTest.php index 6b4777af1c..10545c362d 100644 --- a/tests/Feature/Controllers/AccountControllerTest.php +++ b/tests/Feature/Controllers/AccountControllerTest.php @@ -125,6 +125,8 @@ class AccountControllerTest extends TestCase $journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal); $repository->shouldReceive('find')->once()->andReturn(new TransactionCurrency()); $accountRepos->shouldReceive('getNote')->andReturn($note)->once(); + $accountRepos->shouldReceive('getOpeningBalanceAmount')->andReturnNull(); + $accountRepos->shouldReceive('getOpeningBalanceDate')->andReturnNull(); $this->be($this->user()); $account = $this->user()->accounts()->where('account_type_id', 3)->whereNull('deleted_at')->first();