X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2FWallabag%2FCoreBundle%2FController%2FEntryControllerTest.php;h=c347cca5ad2ab05ba2acb3783fa432fd2ad13307;hb=68cb89a5161351dd730871fc834bf147204a2a07;hp=b248b1781c66d1f1536abffc3bb12af1ede6fa56;hpb=32f455c1317bf536aea63147d2c5074ae7425d42;p=github%2Fwallabag%2Fwallabag.git diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php index b248b178..c347cca5 100644 --- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php @@ -725,6 +725,15 @@ class EntryControllerTest extends WallabagCoreTestCase $crawler = $client->submit($form, $data); $this->assertCount(5, $crawler->filter('div[class=entry]')); + $crawler = $client->request('GET', '/unread/list'); + $form = $crawler->filter('button[id=submit-filter]')->form(); + $data = [ + 'entry_filter[domainName]' => 'dOmain', + ]; + + $crawler = $client->submit($form, $data); + $this->assertCount(5, $crawler->filter('div[class=entry]')); + $form = $crawler->filter('button[id=submit-filter]')->form(); $data = [ 'entry_filter[domainName]' => 'wallabag', @@ -1034,7 +1043,7 @@ class EntryControllerTest extends WallabagCoreTestCase $crawler = $client->submit($form, $data); - $this->assertCount(4, $crawler->filter('div[class=entry]')); + $this->assertCount(5, $crawler->filter('div[class=entry]')); // Search on starred list $crawler = $client->request('GET', '/starred/list'); @@ -1078,7 +1087,7 @@ class EntryControllerTest extends WallabagCoreTestCase $form = $crawler->filter('form[name=search]')->form(); $data = [ - 'search_entry[term]' => 'pocket', + 'search_entry[term]' => 'wxcvbnqsdf', // a string not available in the database ]; $crawler = $client->submit($form, $data);