3 namespace Tests\Wallabag\ApiBundle\Controller
;
5 use Tests\Wallabag\ApiBundle\WallabagApiTestCase
;
7 class WallabagRestControllerTest
extends WallabagApiTestCase
9 public function testGetVersion()
11 $this->client
->request('GET', '/api/version');
13 $this->assertEquals(200, $this->client
->getResponse()->getStatusCode());
15 $content = json_decode($this->client
->getResponse()->getContent(), true);
17 $this->assertEquals($this->client
->getContainer()->getParameter('wallabag_core.version'), $content);