diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-11-19 15:58:10 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-11-20 09:39:26 +0100 |
commit | edd2472faa1ad01fe8b165ea8bbf4414cec8cbe1 (patch) | |
tree | 83ba6f87e0e044eefb13b6656a661fb689941014 /tests | |
parent | 8670250a2674b6b388f3d40a8ba291a4dca41b82 (diff) | |
download | wallabag-edd2472faa1ad01fe8b165ea8bbf4414cec8cbe1.tar.gz wallabag-edd2472faa1ad01fe8b165ea8bbf4414cec8cbe1.tar.zst wallabag-edd2472faa1ad01fe8b165ea8bbf4414cec8cbe1.zip |
Fix tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Wallabag/CoreBundle/Controller/RssControllerTest.php | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/RssControllerTest.php b/tests/Wallabag/CoreBundle/Controller/RssControllerTest.php index 1d6c02b2..5a59654d 100644 --- a/tests/Wallabag/CoreBundle/Controller/RssControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/RssControllerTest.php | |||
@@ -157,19 +157,15 @@ class RssControllerTest extends WallabagCoreTestCase | |||
157 | 157 | ||
158 | $client = $this->getClient(); | 158 | $client = $this->getClient(); |
159 | 159 | ||
160 | $client->request('GET', '/admin/SUPERTOKEN/archive.xml'); | 160 | $client->request('GET', '/admin/SUPERTOKEN/unread.xml'); |
161 | $this->assertEquals(200, $client->getResponse()->getStatusCode()); | ||
162 | $this->validateDom($client->getResponse()->getContent(), 'archive'); | ||
163 | |||
164 | $client->request('GET', '/admin/SUPERTOKEN/archive.xml?page=2'); | ||
165 | $this->assertEquals(200, $client->getResponse()->getStatusCode()); | 161 | $this->assertEquals(200, $client->getResponse()->getStatusCode()); |
166 | $this->validateDom($client->getResponse()->getContent(), 'archive'); | 162 | $this->validateDom($client->getResponse()->getContent(), 'unread'); |
167 | 163 | ||
168 | $client->request('GET', '/admin/SUPERTOKEN/archive.xml?page=3'); | 164 | $client->request('GET', '/admin/SUPERTOKEN/unread.xml?page=2'); |
169 | $this->assertEquals(200, $client->getResponse()->getStatusCode()); | 165 | $this->assertEquals(200, $client->getResponse()->getStatusCode()); |
170 | $this->validateDom($client->getResponse()->getContent(), 'archive'); | 166 | $this->validateDom($client->getResponse()->getContent(), 'unread'); |
171 | 167 | ||
172 | $client->request('GET', '/admin/SUPERTOKEN/archive.xml?page=3000'); | 168 | $client->request('GET', '/admin/SUPERTOKEN/unread.xml?page=3000'); |
173 | $this->assertEquals(302, $client->getResponse()->getStatusCode()); | 169 | $this->assertEquals(302, $client->getResponse()->getStatusCode()); |
174 | } | 170 | } |
175 | } | 171 | } |