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