1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Check if status code is OK

This commit is contained in:
Nicolas Lœuillet 2016-11-18 23:05:02 +01:00
parent e10e6ab34e
commit d215273c65
No known key found for this signature in database
GPG key ID: BDC1EFB5CA0145F2
2 changed files with 24 additions and 0 deletions

View file

@ -1006,5 +1006,16 @@ class EntryControllerTest extends WallabagCoreTestCase
$crawler = $client->submit($form, $data);
$this->assertCount(1, $crawler->filter('div[class=entry]'));
$crawler = $client->request('GET', '/all/list');
$form = $crawler->filter('button[id=submit-filter]')->form();
$data = [
'entry_filter[httpStatus]' => 1024,
];
$crawler = $client->submit($form, $data);
$this->assertCount(7, $crawler->filter('div[class=entry]'));
}
}