aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/ApiBundle
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-10-05 19:30:56 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-10-05 19:30:56 +0200
commit0b174d69d77770fab617661c284095bc61d30c10 (patch)
tree4454edd6d0987dd83bd6c49930e90d784d623bf2 /tests/Wallabag/ApiBundle
parent5d39243068a3c1132f6e3020c6c9da1840f85fcf (diff)
downloadwallabag-0b174d69d77770fab617661c284095bc61d30c10.tar.gz
wallabag-0b174d69d77770fab617661c284095bc61d30c10.tar.zst
wallabag-0b174d69d77770fab617661c284095bc61d30c10.zip
Fix typo & add test
Diffstat (limited to 'tests/Wallabag/ApiBundle')
-rw-r--r--tests/Wallabag/ApiBundle/Controller/WallabagRestControllerTest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/Wallabag/ApiBundle/Controller/WallabagRestControllerTest.php b/tests/Wallabag/ApiBundle/Controller/WallabagRestControllerTest.php
index fd72b8f2..65b65290 100644
--- a/tests/Wallabag/ApiBundle/Controller/WallabagRestControllerTest.php
+++ b/tests/Wallabag/ApiBundle/Controller/WallabagRestControllerTest.php
@@ -804,4 +804,11 @@ class WallabagRestControllerTest extends WallabagApiTestCase
804 804
805 $this->assertEquals(false, $content['exists']); 805 $this->assertEquals(false, $content['exists']);
806 } 806 }
807
808 public function testGetEntriesExistsWithNoUrl()
809 {
810 $this->client->request('GET', '/api/entries/exists?url=');
811
812 $this->assertEquals(403, $this->client->getResponse()->getStatusCode());
813 }
807} 814}