diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-10-05 19:52:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-05 19:52:06 +0200 |
commit | 9d127b3b9365c73bc393bc303545f24c159cee31 (patch) | |
tree | 2db0c24cc788bfca372fc817c1642419fb676f1a /tests/Wallabag/ApiBundle | |
parent | 046f33e21bb96429933fc37ad756105f0ec67873 (diff) | |
parent | 0b174d69d77770fab617661c284095bc61d30c10 (diff) | |
download | wallabag-9d127b3b9365c73bc393bc303545f24c159cee31.tar.gz wallabag-9d127b3b9365c73bc393bc303545f24c159cee31.tar.zst wallabag-9d127b3b9365c73bc393bc303545f24c159cee31.zip |
Merge pull request #2377 from wallabag/fix-exists-api
Fix exists API call
Diffstat (limited to 'tests/Wallabag/ApiBundle')
-rw-r--r-- | tests/Wallabag/ApiBundle/Controller/WallabagRestControllerTest.php | 7 |
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 | } |