aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2017-06-10 15:00:52 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2017-06-10 15:00:52 +0200
commite8911f7c09fa9d8009d7c7ee9fb0c181d2ffbc31 (patch)
treeb778069a347addc274496020f9c2bc9327320d0d /tests/Wallabag
parent873f6b8e03079d11fab541aa5b0bc6f8fe2d645e (diff)
downloadwallabag-e8911f7c09fa9d8009d7c7ee9fb0c181d2ffbc31.tar.gz
wallabag-e8911f7c09fa9d8009d7c7ee9fb0c181d2ffbc31.tar.zst
wallabag-e8911f7c09fa9d8009d7c7ee9fb0c181d2ffbc31.zip
Add isPublic filter on entries
Diffstat (limited to 'tests/Wallabag')
-rw-r--r--tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
index 8f5c372d..853f37f2 100644
--- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
+++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
@@ -860,6 +860,20 @@ class EntryControllerTest extends WallabagCoreTestCase
860 $this->assertCount(1, $crawler->filter('div[class=entry]')); 860 $this->assertCount(1, $crawler->filter('div[class=entry]'));
861 } 861 }
862 862
863 public function testFilterOnIsPublic()
864 {
865 $this->logInAs('admin');
866 $this->useTheme('baggy');
867 $client = $this->getClient();
868
869 $crawler = $client->request('GET', '/unread/list');
870 $form = $crawler->filter('button[id=submit-filter]')->form();
871 $form['entry_filter[isPublic]']->tick();
872
873 $crawler = $client->submit($form);
874 $this->assertCount(0, $crawler->filter('div[class=entry]'));
875 }
876
863 public function testPreviewPictureFilter() 877 public function testPreviewPictureFilter()
864 { 878 {
865 $this->logInAs('admin'); 879 $this->logInAs('admin');