diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-02-10 18:40:15 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2016-02-10 18:40:15 +0100 |
commit | e686a76d343a3745c3dfe8010d9e5784e56bb17c (patch) | |
tree | 4c1258fd527d920ec40552e673d011f6e50ed619 /src/Wallabag/CoreBundle/Tests | |
parent | 567421af5019bf5937aa2b4214b405d87a1f1f86 (diff) | |
download | wallabag-e686a76d343a3745c3dfe8010d9e5784e56bb17c.tar.gz wallabag-e686a76d343a3745c3dfe8010d9e5784e56bb17c.tar.zst wallabag-e686a76d343a3745c3dfe8010d9e5784e56bb17c.zip |
improve test and change method name. Also, display number of entries for each tag
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests')
-rw-r--r-- | src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php | 4 |
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()); |