aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Tests
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-02-11 15:15:06 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-02-11 15:15:06 +0100
commitf170f315941b461a2bcd85843583baedbc48efd2 (patch)
tree673b02fc2cd39dc3b2ed7184dc37509e5255b541 /src/Wallabag/CoreBundle/Tests
parent874e3e10a45a5b3c662bac1112bbdc1acb0adb95 (diff)
downloadwallabag-f170f315941b461a2bcd85843583baedbc48efd2.tar.gz
wallabag-f170f315941b461a2bcd85843583baedbc48efd2.tar.zst
wallabag-f170f315941b461a2bcd85843583baedbc48efd2.zip
add test for empty salt
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests')
-rw-r--r--src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php
index 298cf10c..815903fa 100644
--- a/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php
+++ b/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php
@@ -35,6 +35,7 @@ class WallabagRestControllerTest extends WallabagTestCase
35 $client = $this->createClient(); 35 $client = $this->createClient();
36 $client->request('GET', '/api/salts/admin.json'); 36 $client->request('GET', '/api/salts/admin.json');
37 $this->assertEquals(200, $client->getResponse()->getStatusCode()); 37 $this->assertEquals(200, $client->getResponse()->getStatusCode());
38 $this->assertNotEmpty(json_decode($client->getResponse()->getContent()));
38 39
39 $client->request('GET', '/api/salts/notfound.json'); 40 $client->request('GET', '/api/salts/notfound.json');
40 $this->assertEquals(404, $client->getResponse()->getStatusCode()); 41 $this->assertEquals(404, $client->getResponse()->getStatusCode());