diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests')
-rw-r--r-- | src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php index 24848eb2..0bd18c44 100644 --- a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php | |||
@@ -259,4 +259,26 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
259 | 259 | ||
260 | $this->assertCount(1, $crawler->filter('div[class=entry]')); | 260 | $this->assertCount(1, $crawler->filter('div[class=entry]')); |
261 | } | 261 | } |
262 | |||
263 | public function testPaginationWithFilter() | ||
264 | { | ||
265 | $this->logInAs('admin'); | ||
266 | $client = $this->getClient(); | ||
267 | |||
268 | $crawler = $client->request('GET', '/config'); | ||
269 | |||
270 | $form = $crawler->filter('button[id=config_save]')->form(); | ||
271 | |||
272 | $data = array( | ||
273 | 'config[items_per_page]' => '1', | ||
274 | ); | ||
275 | |||
276 | $client->submit($form, $data); | ||
277 | |||
278 | $parameters = '?entry_filter%5BreadingTime%5D%5Bleft_number%5D=&entry_filter%5BreadingTime%5D%5Bright_number%5D='; | ||
279 | |||
280 | $crawler = $client->request('GET', 'unread/list'.$parameters); | ||
281 | |||
282 | $this->assertContains($parameters, $client->getResponse()->getContent()); | ||
283 | } | ||
262 | } | 284 | } |