]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fix #3361 add test
authorSébastien Viande <sviande@satisfactory.fr>
Tue, 26 Sep 2017 09:29:09 +0000 (11:29 +0200)
committerSébastien Viande <sviande@gmail.com>
Thu, 12 Oct 2017 05:38:27 +0000 (07:38 +0200)
tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php

index fcec3f3b2fba1ad15f11c55ba3d8d318fbc833c5..4ffe478da4191711328e6b3fc6e617159cfd482f 100644 (file)
@@ -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]);