mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-27 03:21:01 +00:00
write test for version
This commit is contained in:
parent
2b4770301c
commit
9761bfa18e
1 changed files with 11 additions and 0 deletions
|
@ -336,4 +336,15 @@ class WallabagRestControllerTest extends WallabagApiTestCase
|
|||
|
||||
$this->assertCount(0, $entries);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue