aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag')
-rw-r--r--src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php
new file mode 100644
index 00000000..0949b92d
--- /dev/null
+++ b/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php
@@ -0,0 +1,22 @@
1<?php
2
3namespace Wallabag\CoreBundle\Tests\Controller;
4
5use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
6
7class WallabagRestControllerTest extends WebTestCase
8{
9 public function testEmptyGetEntries() {
10 $client = $this->createClient();
11 $client->request('GET', '/api/entries');
12 $this->assertTrue($client->getResponse()->isOk());
13
14 $this->assertTrue(
15 $client->getResponse()->headers->contains(
16 'Content-Type',
17 'application/json'
18 )
19 );
20 $this->assertEquals('[]', $client->getResponse()->getContent());
21 }
22} \ No newline at end of file