mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-23 07:08:09 +00:00
Assert that the tag has is the good one
This commit is contained in:
parent
958671a7ae
commit
69edb774eb
1 changed files with 4 additions and 1 deletions
|
@ -131,7 +131,10 @@ class EntryControllerTest extends WallabagCoreTestCase
|
|||
$entry = $em
|
||||
->getRepository('WallabagCoreBundle:Entry')
|
||||
->findOneByUrl($url);
|
||||
$this->assertCount(1, $entry->getTags());
|
||||
$tags = $entry->getTags();
|
||||
|
||||
$this->assertCount(1, $tags);
|
||||
$this->assertEquals('wallabag', $tags[0]->getLabel());
|
||||
|
||||
$em->remove($entry);
|
||||
$em->flush();
|
||||
|
|
Loading…
Reference in a new issue