X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FTests%2FController%2FTagControllerTest.php;h=d639128224f60a149cb6989ffafd1f305ea85316;hb=refs%2Fpull%2F1699%2Fhead;hp=ae29a2a68383016de785d2957fee8b6c83dcae7a;hpb=567421af5019bf5937aa2b4214b405d87a1f1f86;p=github%2Fwallabag%2Fwallabag.git 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 $tag = $client->getContainer() ->get('doctrine.orm.entity_manager') ->getRepository('WallabagCoreBundle:Tag') - ->findOnebyEntryAndLabel($entry, $this->tagName); + ->findOneByEntryAndTagLabel($entry, $this->tagName); $client->request('GET', '/remove-tag/'.$entry->getId().'/'.$tag->getId()); $this->assertEquals(302, $client->getResponse()->getStatusCode()); + $this->assertNotContains($this->tagName, $entry->getTags()); + $client->request('GET', '/remove-tag/'.$entry->getId().'/'.$tag->getId()); $this->assertEquals(404, $client->getResponse()->getStatusCode());