From: Kévin Gomez Date: Mon, 16 Nov 2015 12:34:00 +0000 (+0100) Subject: Assert that the tag has is the good one X-Git-Tag: 2.0.0-alpha.1~11^2~2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=69edb774eb360ea33646fcc81cd4ea71fa137680;p=github%2Fwallabag%2Fwallabag.git Assert that the tag has is the good one --- diff --git a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php index 9f2bcd6c..af62aee8 100644 --- a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php @@ -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();