mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-31 07:47:28 +01:00
typos & cs
This commit is contained in:
parent
9761bfa18e
commit
6f8310b445
@ -341,7 +341,9 @@ class WallabagRestController extends FOSRestController
|
|||||||
return $this->renderJsonResponse($json);
|
return $this->renderJsonResponse($json);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Retrive version.
|
* Retrieve version number.
|
||||||
|
*
|
||||||
|
* @ApiDoc()
|
||||||
*
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*/
|
*/
|
||||||
|
@ -337,14 +337,14 @@ class WallabagRestControllerTest extends WallabagApiTestCase
|
|||||||
$this->assertCount(0, $entries);
|
$this->assertCount(0, $entries);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testGetVersion(){
|
public function testGetVersion()
|
||||||
|
{
|
||||||
$this->client->request('GET','/api/version');
|
$this->client->request('GET', '/api/version');
|
||||||
|
|
||||||
$this->assertEquals(200, $this->client->getResponse()->getStatusCode());
|
$this->assertEquals(200, $this->client->getResponse()->getStatusCode());
|
||||||
|
|
||||||
$content = json_decode($this->client->getResponse()->getContent(), true);
|
$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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user