aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-03-08 10:09:57 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-03-08 10:09:57 +0100
commitd442cf4a92118a96926865447560b89e129d73dd (patch)
tree1c820015be10850fd48897ca663e1a5804b94bdd /src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php
parent807037884f0085cd39fe4b41cacd82be14e309d9 (diff)
parent6f8310b445ce0aeb40aeed78501a6e113c05c087 (diff)
downloadwallabag-d442cf4a92118a96926865447560b89e129d73dd.tar.gz
wallabag-d442cf4a92118a96926865447560b89e129d73dd.tar.zst
wallabag-d442cf4a92118a96926865447560b89e129d73dd.zip
Merge pull request #1761 from wallabag/v2-API-version
V2 api version
Diffstat (limited to 'src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php')
-rw-r--r--src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php b/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php
index 630b75bf..a705f9de 100644
--- a/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php
+++ b/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php
@@ -336,4 +336,15 @@ class WallabagRestControllerTest extends WallabagApiTestCase
336 336
337 $this->assertCount(0, $entries); 337 $this->assertCount(0, $entries);
338 } 338 }
339
340 public function testGetVersion()
341 {
342 $this->client->request('GET', '/api/version');
343
344 $this->assertEquals(200, $this->client->getResponse()->getStatusCode());
345
346 $content = json_decode($this->client->getResponse()->getContent(), true);
347
348 $this->assertEquals($this->client->getContainer()->getParameter('wallabag_core.version'), $content);
349 }
339} 350}