aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tests/Wallabag/CoreBundle/Controller/RssControllerTest.php14
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}