Assert that the tag has is the good one

This commit is contained in:
Kévin Gomez 2015-11-16 13:34:00 +01:00
parent 958671a7ae
commit 69edb774eb

View file

@ -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();