diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php | 14 |
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'); |