aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php
diff options
context:
space:
mode:
authorVincent <vincentbechu@gmail.com>2016-03-07 15:16:27 +0100
committerVincent <vincentbechu@gmail.com>2016-03-07 15:16:27 +0100
commit9761bfa18e7a481ce9d73c1650e77bccab1927b3 (patch)
tree50eb34885b31d2dcfb55f1a8aa562b1ee76a0337 /src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php
parent2b4770301cbcaed3838ae3c0b175a985d1b4fb4f (diff)
downloadwallabag-9761bfa18e7a481ce9d73c1650e77bccab1927b3.tar.gz
wallabag-9761bfa18e7a481ce9d73c1650e77bccab1927b3.tar.zst
wallabag-9761bfa18e7a481ce9d73c1650e77bccab1927b3.zip
write test for 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..f42c0f57 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}