aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/ApiBundle
diff options
context:
space:
mode:
authorSébastien Viande <sviande@satisfactory.fr>2017-09-26 11:29:09 +0200
committerSébastien Viande <sviande@gmail.com>2017-10-12 07:38:27 +0200
commitd03b72f405095e4173dd07e6f38fe0cff23d36c4 (patch)
tree892b4556c43cb75d81ebde99980e647ab1ad656e /tests/Wallabag/ApiBundle
parentfafdf1711705fd11a370ae65bfe2278a8fb788f2 (diff)
downloadwallabag-d03b72f405095e4173dd07e6f38fe0cff23d36c4.tar.gz
wallabag-d03b72f405095e4173dd07e6f38fe0cff23d36c4.tar.zst
wallabag-d03b72f405095e4173dd07e6f38fe0cff23d36c4.zip
Fix #3361 add test
Diffstat (limited to 'tests/Wallabag/ApiBundle')
-rw-r--r--tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php7
1 files changed, 7 insertions, 0 deletions
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
308 $this->assertSame('application/json', $this->client->getResponse()->headers->get('Content-Type')); 308 $this->assertSame('application/json', $this->client->getResponse()->headers->get('Content-Type'));
309 } 309 }
310 310
311 public function testGetTaggedEntriesWithBadParams()
312 {
313 $this->client->request('GET', '/api/entries', ['tags' => ['foo','bar']]);
314
315 $this->assertSame(200, $this->client->getResponse()->getStatusCode());
316 }
317
311 public function testGetDatedEntries() 318 public function testGetDatedEntries()
312 { 319 {
313 $this->client->request('GET', '/api/entries', ['since' => 1443274283]); 320 $this->client->request('GET', '/api/entries', ['since' => 1443274283]);