mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-28 22:26:22 +00:00
Fix tests.
This commit is contained in:
@@ -40,7 +40,9 @@ class AddTagTest extends TestCase
|
||||
public function testActExistingTag(): void
|
||||
{
|
||||
$tag = $this->user()->tags()->inRandomOrder()->whereNull('deleted_at')->first();
|
||||
/** @var TransactionJournal $journal */
|
||||
$journal = $this->user()->transactionJournals()->inRandomOrder()->whereNull('deleted_at')->first();
|
||||
$journal->tags()->sync([]);
|
||||
$journal->tags()->sync([$tag->id]);
|
||||
$this->assertDatabaseHas('tag_transaction_journal', ['tag_id' => $tag->id, 'transaction_journal_id' => $journal->id]);
|
||||
$ruleAction = new RuleAction;
|
||||
|
||||
Reference in New Issue
Block a user