]>
Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | ||
3 | namespace Tests\Wallabag\ApiBundle\Controller; | |
4 | ||
5 | use Tests\Wallabag\ApiBundle\WallabagApiTestCase; | |
6 | ||
7 | class WallabagRestControllerTest extends WallabagApiTestCase | |
8 | { | |
9 | public function testGetVersion() | |
10 | { | |
11 | $this->client->request('GET', '/api/version'); | |
12 | ||
13 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); | |
14 | ||
15 | $content = json_decode($this->client->getResponse()->getContent(), true); | |
16 | ||
17 | $this->assertEquals($this->client->getContainer()->getParameter('wallabag_core.version'), $content); | |
18 | } | |
19 | } |