blob: 0949b92d9ca505504612bbadbfc11d8c38a105a9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?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());
}
}
|