mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-16 22:58:09 +00:00
make sure randomly selected journals match prerequisites.
This commit is contained in:
@@ -39,7 +39,7 @@ class ClearCategoryTest extends TestCase
|
||||
public function testAct()
|
||||
{
|
||||
// associate budget with journal:
|
||||
$journal = TransactionJournal::find(5);
|
||||
$journal = TransactionJournal::inRandomOrder()->whereNull('deleted_at')->first();
|
||||
$category = $journal->user->categories()->first();
|
||||
$journal->budgets()->save($category);
|
||||
$this->assertGreaterThan(0, $journal->categories()->count());
|
||||
|
||||
Reference in New Issue
Block a user