mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +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);
|
$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…
Add table
Add a link
Reference in a new issue