mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-27 11:31:05 +00:00
900c844861
Fix #2503
19 lines
550 B
PHP
19 lines
550 B
PHP
<?php
|
|
|
|
namespace Tests\Wallabag\ApiBundle\Controller;
|
|
|
|
use Tests\Wallabag\ApiBundle\WallabagApiTestCase;
|
|
|
|
class WallabagRestControllerTest extends WallabagApiTestCase
|
|
{
|
|
public function testGetVersion()
|
|
{
|
|
$this->client->request('GET', '/api/version');
|
|
|
|
$this->assertEquals(200, $this->client->getResponse()->getStatusCode());
|
|
|
|
$content = json_decode($this->client->getResponse()->getContent(), true);
|
|
|
|
$this->assertEquals($this->client->getContainer()->getParameter('wallabag_core.version'), $content);
|
|
}
|
|
}
|