]> git.immae.eu Git - github/wallabag/wallabag.git/blob - ApiBundle/Controller/WallabagRestControllerTest.php
Merge pull request #4438 from wallabag/dependabot/composer/scheb/two-factor-bundle...
[github/wallabag/wallabag.git] / ApiBundle / Controller / WallabagRestControllerTest.php
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 }