diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests')
-rw-r--r-- | src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php index 7ccc37d2..c45e52d7 100644 --- a/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php | |||
@@ -159,6 +159,8 @@ class WallabagRestControllerTest extends WallabagTestCase | |||
159 | ->getRepository('WallabagCoreBundle:Entry') | 159 | ->getRepository('WallabagCoreBundle:Entry') |
160 | ->findOneWithTags(1); | 160 | ->findOneWithTags(1); |
161 | 161 | ||
162 | $entry = $entry[0]; | ||
163 | |||
162 | if (!$entry) { | 164 | if (!$entry) { |
163 | $this->markTestSkipped('No content found in db.'); | 165 | $this->markTestSkipped('No content found in db.'); |
164 | } | 166 | } |
@@ -170,7 +172,7 @@ class WallabagRestControllerTest extends WallabagTestCase | |||
170 | 172 | ||
171 | $client->request('GET', '/api/entries/'.$entry->getId().'/tags', array(), array(), $headers); | 173 | $client->request('GET', '/api/entries/'.$entry->getId().'/tags', array(), array(), $headers); |
172 | 174 | ||
173 | $this->assertEquals(json_encode($tags), $client->getResponse()->getContent()); | 175 | $this->assertEquals(json_encode($tags, JSON_HEX_QUOT), $client->getResponse()->getContent()); |
174 | } | 176 | } |
175 | 177 | ||
176 | public function testPostTagsOnEntry() | 178 | public function testPostTagsOnEntry() |