]> git.immae.eu Git - github/wallabag/wallabag.git/blame_incremental - tests/Wallabag/ApiBundle/Controller/WallabagRestControllerTest.php
Added notmatches operator for tagging rule
[github/wallabag/wallabag.git] / tests / Wallabag / ApiBundle / Controller / WallabagRestControllerTest.php
... / ...
CommitLineData
1<?php
2
3namespace Tests\Wallabag\ApiBundle\Controller;
4
5use Tests\Wallabag\ApiBundle\WallabagApiTestCase;
6
7class 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}