diff options
author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2015-09-13 10:14:42 +0200 |
---|---|---|
committer | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2015-09-13 10:14:42 +0200 |
commit | 40f59b219bfd438bdaf4f36227a43f2b674ece00 (patch) | |
tree | 5b882749cea7003f049940fccdfd4cb990c538a9 /src/Wallabag/CoreBundle/Tests/Controller | |
parent | fb96ea884532e9804194afd92a98c5c6aecc177e (diff) | |
parent | 497e0cad7ca2d2e771c8d41f7bc50ab2bc222cdb (diff) | |
download | wallabag-40f59b219bfd438bdaf4f36227a43f2b674ece00.tar.gz wallabag-40f59b219bfd438bdaf4f36227a43f2b674ece00.tar.zst wallabag-40f59b219bfd438bdaf4f36227a43f2b674ece00.zip |
Merge pull request #1418 from wallabag/v2-previewpicture-filter
filter for entries with previewPicture
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests/Controller')
-rw-r--r-- | src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php index a92835b3..77b57884 100644 --- a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php | |||
@@ -369,4 +369,17 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
369 | $crawler = $client->submit($form); | 369 | $crawler = $client->submit($form); |
370 | $this->assertCount(2, $crawler->filter('div[class=entry]')); | 370 | $this->assertCount(2, $crawler->filter('div[class=entry]')); |
371 | } | 371 | } |
372 | |||
373 | public function testPreviewPictureFilter() | ||
374 | { | ||
375 | $this->logInAs('admin'); | ||
376 | $client = $this->getClient(); | ||
377 | |||
378 | $crawler = $client->request('GET', '/unread/list'); | ||
379 | $form = $crawler->filter('button[id=submit-filter]')->form(); | ||
380 | $form['entry_filter[previewPicture]']->tick(); | ||
381 | |||
382 | $crawler = $client->submit($form); | ||
383 | $this->assertCount(1, $crawler->filter('div[class=entry]')); | ||
384 | } | ||
372 | } | 385 | } |