diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-11-18 23:05:02 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-11-18 23:05:02 +0100 |
commit | d215273c65ed7aecf0a1f887c91752eaf41d191b (patch) | |
tree | 109a91745ba45ae886222d2e34b9491a2d0d3b00 /tests | |
parent | e10e6ab34e62129d57fc69d7b9b69b08c20e6f5a (diff) | |
download | wallabag-d215273c65ed7aecf0a1f887c91752eaf41d191b.tar.gz wallabag-d215273c65ed7aecf0a1f887c91752eaf41d191b.tar.zst wallabag-d215273c65ed7aecf0a1f887c91752eaf41d191b.zip |
Check if status code is OK
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php index 771903fe..09cf01b8 100644 --- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php | |||
@@ -1006,5 +1006,16 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
1006 | $crawler = $client->submit($form, $data); | 1006 | $crawler = $client->submit($form, $data); |
1007 | 1007 | ||
1008 | $this->assertCount(1, $crawler->filter('div[class=entry]')); | 1008 | $this->assertCount(1, $crawler->filter('div[class=entry]')); |
1009 | |||
1010 | $crawler = $client->request('GET', '/all/list'); | ||
1011 | $form = $crawler->filter('button[id=submit-filter]')->form(); | ||
1012 | |||
1013 | $data = [ | ||
1014 | 'entry_filter[httpStatus]' => 1024, | ||
1015 | ]; | ||
1016 | |||
1017 | $crawler = $client->submit($form, $data); | ||
1018 | |||
1019 | $this->assertCount(7, $crawler->filter('div[class=entry]')); | ||
1009 | } | 1020 | } |
1010 | } | 1021 | } |