diff options
author | Kevin Decherf <kevin@kdecherf.com> | 2017-05-21 16:35:06 +0200 |
---|---|---|
committer | Kevin Decherf <kevin@kdecherf.com> | 2017-05-31 00:36:46 +0200 |
commit | 5dbf3f2326c4054782304b9a41d773a1100acf48 (patch) | |
tree | 5a13f5e02a2cb72a90d90f1074a2651c88057348 /tests/Wallabag/CoreBundle/Controller/TagControllerTest.php | |
parent | 2150576d86709968faec3ed7b8cdc576c0200ae2 (diff) | |
download | wallabag-5dbf3f2326c4054782304b9a41d773a1100acf48.tar.gz wallabag-5dbf3f2326c4054782304b9a41d773a1100acf48.tar.zst wallabag-5dbf3f2326c4054782304b9a41d773a1100acf48.zip |
TagController: ignore ActionMarkAsRead when removing tag from entry
Fixes #2835
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
Diffstat (limited to 'tests/Wallabag/CoreBundle/Controller/TagControllerTest.php')
-rw-r--r-- | tests/Wallabag/CoreBundle/Controller/TagControllerTest.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/TagControllerTest.php b/tests/Wallabag/CoreBundle/Controller/TagControllerTest.php index c3b22dcd..e36d3924 100644 --- a/tests/Wallabag/CoreBundle/Controller/TagControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/TagControllerTest.php | |||
@@ -126,9 +126,13 @@ class TagControllerTest extends WallabagCoreTestCase | |||
126 | ->getRepository('WallabagCoreBundle:Tag') | 126 | ->getRepository('WallabagCoreBundle:Tag') |
127 | ->findOneByEntryAndTagLabel($entry, $this->tagName); | 127 | ->findOneByEntryAndTagLabel($entry, $this->tagName); |
128 | 128 | ||
129 | // We make a first request to set an history and test redirection after tag deletion | ||
130 | $client->request('GET', '/view/'.$entry->getId()); | ||
131 | $entryUri = $client->getRequest()->getUri(); | ||
129 | $client->request('GET', '/remove-tag/'.$entry->getId().'/'.$tag->getId()); | 132 | $client->request('GET', '/remove-tag/'.$entry->getId().'/'.$tag->getId()); |
130 | 133 | ||
131 | $this->assertEquals(302, $client->getResponse()->getStatusCode()); | 134 | $this->assertEquals(302, $client->getResponse()->getStatusCode()); |
135 | $this->assertEquals($entryUri, $client->getResponse()->getTargetUrl()); | ||
132 | 136 | ||
133 | $this->assertNotContains($this->tagName, $entry->getTags()); | 137 | $this->assertNotContains($this->tagName, $entry->getTags()); |
134 | 138 | ||