aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKévin Gomez <contact@kevingomez.fr>2015-11-16 13:34:00 +0100
committerKévin Gomez <contact@kevingomez.fr>2015-11-16 13:34:00 +0100
commit69edb774eb360ea33646fcc81cd4ea71fa137680 (patch)
tree69fd86def0c972363e29072a56ef28f70bb59ce8
parent958671a7ae2f19c4b919ed4ba0161e7d300411b4 (diff)
downloadwallabag-69edb774eb360ea33646fcc81cd4ea71fa137680.tar.gz
wallabag-69edb774eb360ea33646fcc81cd4ea71fa137680.tar.zst
wallabag-69edb774eb360ea33646fcc81cd4ea71fa137680.zip
Assert that the tag has is the good one
-rw-r--r--src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php5
1 files changed, 4 insertions, 1 deletions
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
131 $entry = $em 131 $entry = $em
132 ->getRepository('WallabagCoreBundle:Entry') 132 ->getRepository('WallabagCoreBundle:Entry')
133 ->findOneByUrl($url); 133 ->findOneByUrl($url);
134 $this->assertCount(1, $entry->getTags()); 134 $tags = $entry->getTags();
135
136 $this->assertCount(1, $tags);
137 $this->assertEquals('wallabag', $tags[0]->getLabel());
135 138
136 $em->remove($entry); 139 $em->remove($entry);
137 $em->flush(); 140 $em->flush();