mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix tests
This commit is contained in:
parent
61eeb84db6
commit
b18012a36c
@ -39,7 +39,8 @@ class RemoveTagTest extends TestCase
|
|||||||
$journal->save();
|
$journal->save();
|
||||||
}
|
}
|
||||||
$firstTag = $tags->first();
|
$firstTag = $tags->first();
|
||||||
$this->assertEquals($tags->count(), $journal->tags()->count());
|
$oldCount = $journal->tags()->count();
|
||||||
|
$this->assertGreaterThan(0, $journal->tags()->count());
|
||||||
|
|
||||||
// fire the action:
|
// fire the action:
|
||||||
$ruleAction = new RuleAction;
|
$ruleAction = new RuleAction;
|
||||||
@ -50,7 +51,7 @@ class RemoveTagTest extends TestCase
|
|||||||
foreach ($journal->tags()->get() as $tag) {
|
foreach ($journal->tags()->get() as $tag) {
|
||||||
$this->assertNotEquals($firstTag->id, $tag->id);
|
$this->assertNotEquals($firstTag->id, $tag->id);
|
||||||
}
|
}
|
||||||
$this->assertEquals(($tags->count() - 1), $journal->tags()->count());
|
$this->assertEquals(($oldCount - 1), $journal->tags()->count());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user