diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php index 5f342825f..29cab1f4d 100644 --- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php @@ -341,7 +341,9 @@ class WallabagRestController extends FOSRestController return $this->renderJsonResponse($json); } /** - * Retrive version. + * Retrieve version number. + * + * @ApiDoc() * * @return Response */ diff --git a/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php b/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php index f42c0f570..a705f9dea 100644 --- a/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php +++ b/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php @@ -337,14 +337,14 @@ class WallabagRestControllerTest extends WallabagApiTestCase $this->assertCount(0, $entries); } - public function testGetVersion(){ - - $this->client->request('GET','/api/version'); + public function testGetVersion() + { + $this->client->request('GET', '/api/version'); $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); $content = json_decode($this->client->getResponse()->getContent(), true); - $this->assertEquals($this->client->getContainer()->getParameter('wallabag_core.version'),$content); + $this->assertEquals($this->client->getContainer()->getParameter('wallabag_core.version'), $content); } }