Fix test that could select a deposit or transfer.

This commit is contained in:
James Cole 2018-03-04 16:07:03 +01:00
parent afc8ad7ff5
commit 5d6f44cd91
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -41,7 +41,7 @@ class SetBudgetTest extends TestCase
public 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');