aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-02-11 18:22:59 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-02-11 18:22:59 +0100
commitd9b71755935e3cb550c1282d8d2e7d2b8966514f (patch)
treef0b59b3d401e5415f6101756a80536926928b060 /src/Wallabag
parent59f18f9a85db8248c41c03a763727a0072700a65 (diff)
downloadwallabag-d9b71755935e3cb550c1282d8d2e7d2b8966514f.tar.gz
wallabag-d9b71755935e3cb550c1282d8d2e7d2b8966514f.tar.zst
wallabag-d9b71755935e3cb550c1282d8d2e7d2b8966514f.zip
test if GET /api/entries returns 1 or more results
Diffstat (limited to 'src/Wallabag')
-rw-r--r--src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php
index 50b61234..00b96905 100644
--- a/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php
+++ b/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php
@@ -104,6 +104,15 @@ class WallabagRestControllerTest extends WallabagTestCase
104 $headers = $this->generateHeaders('admin', 'test', $salt[0]); 104 $headers = $this->generateHeaders('admin', 'test', $salt[0]);
105 105
106 $client->request('GET', '/api/entries', array(), array(), $headers); 106 $client->request('GET', '/api/entries', array(), array(), $headers);
107
108 $this->assertEquals(200, $client->getResponse()->getStatusCode());
109
110 /* var_dump(count(json_decode($client->getResponse()->getContent())));
111 var_dump($client->getResponse()->getContent());
112 die;
113*/
114 $this->assertGreaterThanOrEqual(1, count(json_decode($client->getResponse()->getContent())));
115
107 $this->assertContains('Mailjet', $client->getResponse()->getContent()); 116 $this->assertContains('Mailjet', $client->getResponse()->getContent());
108 117
109 $this->assertTrue( 118 $this->assertTrue(