mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-18 10:16:49 +00:00
make sure randomly selected journals match prerequisites.
This commit is contained in:
@@ -40,7 +40,7 @@ class PrependNotesTest extends TestCase
|
||||
public function testAct()
|
||||
{
|
||||
// give journal some notes.
|
||||
$journal = TransactionJournal::find(8);
|
||||
$journal = TransactionJournal::inRandomOrder()->whereNull('deleted_at')->first();
|
||||
$note = $journal->notes()->first();
|
||||
$start = 'Default note text';
|
||||
$toPrepend = 'This is prepended';
|
||||
@@ -69,7 +69,7 @@ class PrependNotesTest extends TestCase
|
||||
public function testActNewNote()
|
||||
{
|
||||
// give journal some notes.
|
||||
$journal = TransactionJournal::find(4);
|
||||
$journal = TransactionJournal::inRandomOrder()->whereNull('deleted_at')->first();
|
||||
$note = $journal->notes()->first();
|
||||
if (!is_null($note)) {
|
||||
$note->forceDelete();
|
||||
|
Reference in New Issue
Block a user