]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Assert that the tag has is the good one
authorKévin Gomez <contact@kevingomez.fr>
Mon, 16 Nov 2015 12:34:00 +0000 (13:34 +0100)
committerKévin Gomez <contact@kevingomez.fr>
Mon, 16 Nov 2015 12:34:00 +0000 (13:34 +0100)
src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php

index 9f2bcd6cf3c4a40a282672832aa8bbf5e872bd7c..af62aee8d85f80fd2d1018a858cc14677583bf5e 100644 (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();