]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #1418 from wallabag/v2-previewpicture-filter
authorJeremy Benoist <j0k3r@users.noreply.github.com>
Sun, 13 Sep 2015 08:14:42 +0000 (10:14 +0200)
committerJeremy Benoist <j0k3r@users.noreply.github.com>
Sun, 13 Sep 2015 08:14:42 +0000 (10:14 +0200)
filter for entries with previewPicture

1  2 
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig
src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php

index a92835b3162b6072014e08e15a123227e376f64f,5798009ca188bbe2d50de6305c057c4c41e3e7f2..77b57884679d0dbd0651ed37ce27ae9ba799908c
@@@ -367,6 -367,19 +367,19 @@@ class EntryControllerTest extends Walla
          $form['entry_filter[isStarred]']->tick();
  
          $crawler = $client->submit($form);
 -        $this->assertCount(1, $crawler->filter('div[class=entry]'));
 +        $this->assertCount(2, $crawler->filter('div[class=entry]'));
      }
+     public function testPreviewPictureFilter()
+     {
+         $this->logInAs('admin');
+         $client = $this->getClient();
+         $crawler = $client->request('GET', '/unread/list');
+         $form = $crawler->filter('button[id=submit-filter]')->form();
+         $form['entry_filter[previewPicture]']->tick();
+         $crawler = $client->submit($form);
+         $this->assertCount(1, $crawler->filter('div[class=entry]'));
+     }
  }