mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-17 07:08:19 +00:00
make sure randomly selected journals match prerequisites.
This commit is contained in:
@@ -37,7 +37,7 @@ class NotesEmptyTest extends TestCase
|
||||
*/
|
||||
public function testTriggered()
|
||||
{
|
||||
$journal = TransactionJournal::find(48);
|
||||
$journal = TransactionJournal::inRandomOrder()->whereNull('deleted_at')->first();
|
||||
$journal->notes()->delete();
|
||||
$trigger = NotesEmpty::makeFromStrings('', false);
|
||||
$result = $trigger->triggered($journal);
|
||||
@@ -49,7 +49,7 @@ class NotesEmptyTest extends TestCase
|
||||
*/
|
||||
public function testTriggeredEmpty()
|
||||
{
|
||||
$journal = TransactionJournal::find(49);
|
||||
$journal = TransactionJournal::inRandomOrder()->whereNull('deleted_at')->first();
|
||||
$journal->notes()->delete();
|
||||
$note = new Note();
|
||||
$note->noteable()->associate($journal);
|
||||
@@ -65,7 +65,7 @@ class NotesEmptyTest extends TestCase
|
||||
*/
|
||||
public function testTriggeredPartial()
|
||||
{
|
||||
$journal = TransactionJournal::find(50);
|
||||
$journal = TransactionJournal::inRandomOrder()->whereNull('deleted_at')->first();
|
||||
$journal->notes()->delete();
|
||||
$note = new Note();
|
||||
$note->noteable()->associate($journal);
|
||||
|
||||
Reference in New Issue
Block a user