aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-09-13 09:57:35 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-09-13 10:11:22 +0200
commit497e0cad7ca2d2e771c8d41f7bc50ab2bc222cdb (patch)
tree9da03f14eab17a8b32b8d6250d90d76b87302be2 /src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php
parent616f9fea26af9d9c9dd6134388811c120f1e9656 (diff)
downloadwallabag-497e0cad7ca2d2e771c8d41f7bc50ab2bc222cdb.tar.gz
wallabag-497e0cad7ca2d2e771c8d41f7bc50ab2bc222cdb.tar.zst
wallabag-497e0cad7ca2d2e771c8d41f7bc50ab2bc222cdb.zip
add test for previewPicture filter
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 a0966285..5798009c 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(1, $crawler->filter('div[class=entry]')); 370 $this->assertCount(1, $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}