aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Tests
diff options
context:
space:
mode:
authorJeremy <jeremy.benoist@gmail.com>2015-04-01 21:53:57 +0200
committerJeremy <jeremy.benoist@gmail.com>2015-04-01 21:59:13 +0200
commit9744e97131182f413b51a0ce671ff273fc28a0bb (patch)
tree07bfb4eecce1e08934da8994f2f13bc706b1f9fb /src/Wallabag/ApiBundle/Tests
parent769e19dc4ab1a068e8165a7b237f42a78a6d312f (diff)
downloadwallabag-9744e97131182f413b51a0ce671ff273fc28a0bb.tar.gz
wallabag-9744e97131182f413b51a0ce671ff273fc28a0bb.tar.zst
wallabag-9744e97131182f413b51a0ce671ff273fc28a0bb.zip
Fix tests
Diffstat (limited to 'src/Wallabag/ApiBundle/Tests')
-rw-r--r--src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php b/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php
index ea8ee072..b36ae7c6 100644
--- a/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php
+++ b/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php
@@ -1,6 +1,6 @@
1<?php 1<?php
2 2
3namespace Wallabag\CoreBundle\Tests\Controller; 3namespace Wallabag\ApiBundle\Tests\Controller;
4 4
5use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; 5use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
6 6
@@ -177,10 +177,10 @@ class WallabagRestControllerTest extends WebTestCase
177 $content = json_decode($client->getResponse()->getContent(), true); 177 $content = json_decode($client->getResponse()->getContent(), true);
178 178
179 $this->assertGreaterThanOrEqual(1, count($content)); 179 $this->assertGreaterThanOrEqual(1, count($content));
180 $this->assertEmpty($content['_embedded']['items']); 180 $this->assertNotEmpty($content['_embedded']['items']);
181 $this->assertEquals(0, $content['total']); 181 $this->assertGreaterThanOrEqual(1, $content['total']);
182 $this->assertEquals(1, $content['page']); 182 $this->assertEquals(1, $content['page']);
183 $this->assertEquals(1, $content['pages']); 183 $this->assertGreaterThanOrEqual(1, $content['pages']);
184 184
185 $this->assertTrue( 185 $this->assertTrue(
186 $client->getResponse()->headers->contains( 186 $client->getResponse()->headers->contains(