aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2016-03-08 09:22:25 +0100
committerThomas Citharel <tcit@tcit.fr>2016-03-08 09:22:25 +0100
commit6f8310b445ce0aeb40aeed78501a6e113c05c087 (patch)
tree20028bb42e4773d589ef3e93ebedf16b28aef262 /src/Wallabag
parent9761bfa18e7a481ce9d73c1650e77bccab1927b3 (diff)
downloadwallabag-6f8310b445ce0aeb40aeed78501a6e113c05c087.tar.gz
wallabag-6f8310b445ce0aeb40aeed78501a6e113c05c087.tar.zst
wallabag-6f8310b445ce0aeb40aeed78501a6e113c05c087.zip
typos & cs
Diffstat (limited to 'src/Wallabag')
-rw-r--r--src/Wallabag/ApiBundle/Controller/WallabagRestController.php4
-rw-r--r--src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php8
2 files changed, 7 insertions, 5 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
index 5f342825..29cab1f4 100644
--- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
+++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
@@ -341,7 +341,9 @@ class WallabagRestController extends FOSRestController
341 return $this->renderJsonResponse($json); 341 return $this->renderJsonResponse($json);
342 } 342 }
343 /** 343 /**
344 * Retrive version. 344 * Retrieve version number.
345 *
346 * @ApiDoc()
345 * 347 *
346 * @return Response 348 * @return Response
347 */ 349 */
diff --git a/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php b/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php
index f42c0f57..a705f9de 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
337 $this->assertCount(0, $entries); 337 $this->assertCount(0, $entries);
338 } 338 }
339 339
340 public function testGetVersion(){ 340 public function testGetVersion()
341 341 {
342 $this->client->request('GET','/api/version'); 342 $this->client->request('GET', '/api/version');
343 343
344 $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); 344 $this->assertEquals(200, $this->client->getResponse()->getStatusCode());
345 345
346 $content = json_decode($this->client->getResponse()->getContent(), true); 346 $content = json_decode($this->client->getResponse()->getContent(), true);
347 347
348 $this->assertEquals($this->client->getContainer()->getParameter('wallabag_core.version'),$content); 348 $this->assertEquals($this->client->getContainer()->getParameter('wallabag_core.version'), $content);
349 } 349 }
350} 350}