aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php
diff options
context:
space:
mode:
authorJeremy Benoist <j0k3r@users.noreply.github.com>2016-05-27 09:57:51 +0200
committerJeremy Benoist <j0k3r@users.noreply.github.com>2016-05-27 09:57:51 +0200
commit839475776bdacf7e939984ee8230cb84d34c2289 (patch)
tree550432482ed3208d8e63acdca01a6b447a40e1c7 /src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php
parent7b67f785ff09e093286f3fd665eb263807cbb760 (diff)
parent30334567a3a4c82a8bf97fc2fb95b87bb495add1 (diff)
downloadwallabag-839475776bdacf7e939984ee8230cb84d34c2289.tar.gz
wallabag-839475776bdacf7e939984ee8230cb84d34c2289.tar.zst
wallabag-839475776bdacf7e939984ee8230cb84d34c2289.zip
Merge pull request #2052 from danbartram/feature-filter-unread
Add unread filter to entries pages
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php')
-rw-r--r--src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php18
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');