1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-27 17:28:39 +00:00
wallabag/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php

22 lines
613 B
PHP
Raw Normal View History

2015-02-06 18:02:12 +01:00
<?php
namespace Wallabag\CoreBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class WallabagRestControllerTest extends WebTestCase
{
public function testEmptyGetEntries() {
$client = $this->createClient();
$client->request('GET', '/api/entries');
$this->assertTrue($client->getResponse()->isOk());
$this->assertTrue(
$client->getResponse()->headers->contains(
'Content-Type',
'application/json'
)
);
$this->assertEquals('[]', $client->getResponse()->getContent());
}
}