Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix budget controller tests.
James Cole9f37bf58754f
diff --git a/tests/Feature/Controllers/BudgetControllerTest.php b/tests/Feature/Controllers/BudgetControllerTest.phpindex 5b8e293f90..1714938100 100644--- a/tests/Feature/Controllers/BudgetControllerTest.php+++ b/tests/Feature/Controllers/BudgetControllerTest.php@@ -433,6 +433,7 @@ class BudgetControllerTest extends TestCase$journalRepos = $this->mock(JournalRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$repository->shouldReceive('setAvailableBudget');+ $repository->shouldReceive('cleanupBudgets');$data = ['amount' => '200', 'start' => '2017-01-01', 'end' => '2017-01-31'];$this->be($this->user());@@ -549,6 +550,8 @@ class BudgetControllerTest extends TestCase$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$repository->shouldReceive('find')->andReturn($budget);$repository->shouldReceive('store')->andReturn($budget);+ $repository->shouldReceive('cleanupBudgets');+$this->session(['budgets.create.uri' => 'http://localhost']);$data = [@@ -572,7 +575,8 @@ class BudgetControllerTest extends TestCase$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$repository->shouldReceive('find')->andReturn($budget);$repository->shouldReceive('update');-+ $repository->shouldReceive('cleanupBudgets');+$this->session(['budgets.edit.uri' => 'http://localhost']);$data = [