mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-25 06:51:08 +00:00
make sure randomly selected journals match prerequisites.
This commit is contained in:
@@ -40,7 +40,7 @@ class ClearNotesTest extends TestCase
|
||||
public function testAct()
|
||||
{
|
||||
// give journal a note:
|
||||
$journal = TransactionJournal::find(6);
|
||||
$journal = TransactionJournal::inRandomOrder()->whereNull('deleted_at')->first();
|
||||
$note = $journal->notes()->first();
|
||||
if (is_null($note)) {
|
||||
$note = new Note;
|
||||
|
Reference in New Issue
Block a user