aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Tests/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/ApiBundle/Tests/Controller')
-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(