]> git.immae.eu Git - github/wallabag/wallabag.git/blame - tests/Wallabag/ApiBundle/Controller/WallabagRestControllerTest.php
Add a real configuration for CS-Fixer
[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 {
426bb453
JB
11 // create a new client instead of using $this->client to be sure client isn't authenticated
12 $client = static::createClient();
13 $client->request('GET', '/api/version');
9761bfa1 14
f808b016 15 $this->assertSame(200, $client->getResponse()->getStatusCode());
9761bfa1 16
426bb453 17 $content = json_decode($client->getResponse()->getContent(), true);
9761bfa1 18
f808b016 19 $this->assertSame($client->getContainer()->getParameter('wallabag_core.version'), $content);
9761bfa1 20 }
769e19dc 21}