diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-06-12 10:26:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-12 10:26:01 +0200 |
commit | 977ac0a1d6c5e42d0bb2cbb13eac6213fefbb175 (patch) | |
tree | 820044e9630a1e0db88d9838370b6e50e6e0b376 /tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php | |
parent | 873f6b8e03079d11fab541aa5b0bc6f8fe2d645e (diff) | |
parent | d9da186fb8427ca82d1fd7c4e2ef3f5032781f23 (diff) | |
download | wallabag-977ac0a1d6c5e42d0bb2cbb13eac6213fefbb175.tar.gz wallabag-977ac0a1d6c5e42d0bb2cbb13eac6213fefbb175.tar.zst wallabag-977ac0a1d6c5e42d0bb2cbb13eac6213fefbb175.zip |
Merge pull request #3208 from wallabag/is-public
Add ability to filter public entries & use it in the API
Diffstat (limited to 'tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php')
-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'); |