From d03b72f405095e4173dd07e6f38fe0cff23d36c4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Viande?= Date: Tue, 26 Sep 2017 11:29:09 +0200 Subject: [PATCH] Fix #3361 add test --- .../ApiBundle/Controller/EntryRestControllerTest.php | 7 +++++++ 1 file changed, 7 insertions(+) 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]); -- 2.41.0