From: Sébastien Viande Date: Tue, 26 Sep 2017 09:29:09 +0000 (+0200) Subject: Fix #3361 add test X-Git-Tag: 2.3.0~31^2~3^2~2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=d03b72f405095e4173dd07e6f38fe0cff23d36c4;hp=fafdf1711705fd11a370ae65bfe2278a8fb788f2;p=github%2Fwallabag%2Fwallabag.git Fix #3361 add test --- diff --git a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php index fcec3f3b..4ffe478d 100644 --- a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php +++ b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php @@ -308,6 +308,13 @@ class EntryRestControllerTest extends WallabagApiTestCase $this->assertSame('application/json', $this->client->getResponse()->headers->get('Content-Type')); } + public function testGetTaggedEntriesWithBadParams() + { + $this->client->request('GET', '/api/entries', ['tags' => ['foo','bar']]); + + $this->assertSame(200, $this->client->getResponse()->getStatusCode()); + } + public function testGetDatedEntries() { $this->client->request('GET', '/api/entries', ['since' => 1443274283]);