From 66fa73aea471ce4861c1147b98856e1159a1e56c Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 1 Jun 2018 05:49:41 +0200 Subject: [PATCH] Fix tests. --- .../Controllers/Transaction/SplitControllerTest.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tests/Feature/Controllers/Transaction/SplitControllerTest.php b/tests/Feature/Controllers/Transaction/SplitControllerTest.php index 785eeae4e9..37277fcbd0 100644 --- a/tests/Feature/Controllers/Transaction/SplitControllerTest.php +++ b/tests/Feature/Controllers/Transaction/SplitControllerTest.php @@ -97,9 +97,6 @@ class SplitControllerTest extends TestCase $journalRepos->shouldReceive('getJournalTotal')->andReturn('0'); $journalRepos->shouldReceive('getJournalCategoryName')->andReturn('Some'); - // mock for new account list and for account array - $accountRepos->shouldReceive('getAccountsByType') - ->withArgs([[AccountType::ASSET, AccountType::DEFAULT]])->andReturn(new Collection([$account]))->twice(); $currencyRepository->shouldReceive('get')->once()->andReturn(new Collection); $budgetRepository->shouldReceive('getActiveBudgets')->andReturn(new Collection); @@ -138,10 +135,6 @@ class SplitControllerTest extends TestCase $currencyRepository->shouldReceive('get')->once()->andReturn(new Collection); $budgetRepository->shouldReceive('getActiveBudgets')->andReturn(new Collection); - // mock for new account list and for account array - $accountRepos->shouldReceive('getAccountsByType') - ->withArgs([[AccountType::ASSET, AccountType::DEFAULT]])->andReturn(new Collection([$account]))->twice(); - $journalRepos->shouldReceive('firstNull')->once()->andReturn($deposit); $journalRepos->shouldReceive('getJournalSourceAccounts')->andReturn(new Collection([$account])); @@ -270,9 +263,6 @@ class SplitControllerTest extends TestCase $currencyRepository->shouldReceive('get')->once()->andReturn(new Collection); $budgetRepository->shouldReceive('getActiveBudgets')->andReturn(new Collection); - // mock for new account list and for account array - $accountRepository->shouldReceive('getAccountsByType') - ->withArgs([[AccountType::ASSET, AccountType::DEFAULT]])->andReturn(new Collection([$account]))->twice(); $this->be($this->user()); $response = $this->get(route('transactions.split.edit', [$deposit->id]));