X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FTests%2FController%2FWallabagRestControllerTest.php;h=00b9690523c4c2942ddb1c382f7a325973e577c0;hb=d9b71755935e3cb550c1282d8d2e7d2b8966514f;hp=50b612340405391b022278dfa099dfa9f0b175ba;hpb=59f18f9a85db8248c41c03a763727a0072700a65;p=github%2Fwallabag%2Fwallabag.git 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 $headers = $this->generateHeaders('admin', 'test', $salt[0]); $client->request('GET', '/api/entries', array(), array(), $headers); + + $this->assertEquals(200, $client->getResponse()->getStatusCode()); + + /* var_dump(count(json_decode($client->getResponse()->getContent()))); + var_dump($client->getResponse()->getContent()); + die; +*/ + $this->assertGreaterThanOrEqual(1, count(json_decode($client->getResponse()->getContent()))); + $this->assertContains('Mailjet', $client->getResponse()->getContent()); $this->assertTrue(