aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php')
-rw-r--r--src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php
index ae29a2a6..d6391282 100644
--- a/src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php
+++ b/src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php
@@ -81,12 +81,14 @@ class TagControllerTest extends WallabagCoreTestCase
81 $tag = $client->getContainer() 81 $tag = $client->getContainer()
82 ->get('doctrine.orm.entity_manager') 82 ->get('doctrine.orm.entity_manager')
83 ->getRepository('WallabagCoreBundle:Tag') 83 ->getRepository('WallabagCoreBundle:Tag')
84 ->findOnebyEntryAndLabel($entry, $this->tagName); 84 ->findOneByEntryAndTagLabel($entry, $this->tagName);
85 85
86 $client->request('GET', '/remove-tag/'.$entry->getId().'/'.$tag->getId()); 86 $client->request('GET', '/remove-tag/'.$entry->getId().'/'.$tag->getId());
87 87
88 $this->assertEquals(302, $client->getResponse()->getStatusCode()); 88 $this->assertEquals(302, $client->getResponse()->getStatusCode());
89 89
90 $this->assertNotContains($this->tagName, $entry->getTags());
91
90 $client->request('GET', '/remove-tag/'.$entry->getId().'/'.$tag->getId()); 92 $client->request('GET', '/remove-tag/'.$entry->getId().'/'.$tag->getId());
91 93
92 $this->assertEquals(404, $client->getResponse()->getStatusCode()); 94 $this->assertEquals(404, $client->getResponse()->getStatusCode());