Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix test that could select a deposit or transfer.
James Cole5d6f44cd917a
diff --git a/tests/Unit/TransactionRules/Actions/SetBudgetTest.php b/tests/Unit/TransactionRules/Actions/SetBudgetTest.phpindex 2483de4d1a..6deb1e4a61 100644--- a/tests/Unit/TransactionRules/Actions/SetBudgetTest.php+++ b/tests/Unit/TransactionRules/Actions/SetBudgetTest.php@@ -41,7 +41,7 @@ class SetBudgetTest extends TestCasepublic function testAct(){// get journal, remove all budgets- $journal = TransactionJournal::inRandomOrder()->whereNull('deleted_at')->first();+ $journal = TransactionJournal::inRandomOrder()->where('transaction_type_id', 1)->whereNull('deleted_at')->first();$budget = $journal->user->budgets()->first();$budgetRepos = $this->mock(BudgetRepositoryInterface::class);$budgetRepos->shouldReceive('setUser');