aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php
diff options
context:
space:
mode:
authorJeremy Benoist <j0k3r@users.noreply.github.com>2015-09-13 10:14:42 +0200
committerJeremy Benoist <j0k3r@users.noreply.github.com>2015-09-13 10:14:42 +0200
commit40f59b219bfd438bdaf4f36227a43f2b674ece00 (patch)
tree5b882749cea7003f049940fccdfd4cb990c538a9 /src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php
parentfb96ea884532e9804194afd92a98c5c6aecc177e (diff)
parent497e0cad7ca2d2e771c8d41f7bc50ab2bc222cdb (diff)
downloadwallabag-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/EntryControllerTest.php')
-rw-r--r--src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php13
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}