]> git.immae.eu Git - github/wallabag/wallabag.git/blame - tests/Wallabag/ApiBundle/Controller/WallabagRestControllerTest.php
Exploded WallabagRestController into many controllers
[github/wallabag/wallabag.git] / tests / Wallabag / ApiBundle / Controller / WallabagRestControllerTest.php
CommitLineData
769e19dc
J
1<?php
2
23634d5d 3namespace Tests\Wallabag\ApiBundle\Controller;
769e19dc 4
23634d5d 5use Tests\Wallabag\ApiBundle\WallabagApiTestCase;
769e19dc 6
8a493541 7class 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}