diff options
-rw-r--r-- | src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php index df4c34cd..c7087a71 100644 --- a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php | |||
@@ -471,6 +471,24 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
471 | $this->assertCount(1, $crawler->filter('div[class=entry]')); | 471 | $this->assertCount(1, $crawler->filter('div[class=entry]')); |
472 | } | 472 | } |
473 | 473 | ||
474 | public function testFilterOnUnreadStatus() | ||
475 | { | ||
476 | $this->logInAs('admin'); | ||
477 | $client = $this->getClient(); | ||
478 | |||
479 | $crawler = $client->request('GET', '/all/list'); | ||
480 | |||
481 | $form = $crawler->filter('button[id=submit-filter]')->form(); | ||
482 | |||
483 | $data = [ | ||
484 | 'entry_filter[isUnread]' => true, | ||
485 | ]; | ||
486 | |||
487 | $crawler = $client->submit($form, $data); | ||
488 | |||
489 | $this->assertCount(4, $crawler->filter('div[class=entry]')); | ||
490 | } | ||
491 | |||
474 | public function testFilterOnCreationDate() | 492 | public function testFilterOnCreationDate() |
475 | { | 493 | { |
476 | $this->logInAs('admin'); | 494 | $this->logInAs('admin'); |