diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-02-27 15:24:36 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-03-06 21:09:15 +0100 |
commit | b0cce9e6369b0b821c01163a0e4df5552f9924f6 (patch) | |
tree | 001890dc2d7a7c99bf144edf4ffea713aa52a7c2 /src/Wallabag/CoreBundle/Tests | |
parent | 1df1204d94a26cda064886c827a23ba642ebc769 (diff) | |
download | wallabag-b0cce9e6369b0b821c01163a0e4df5552f9924f6.tar.gz wallabag-b0cce9e6369b0b821c01163a0e4df5552f9924f6.tar.zst wallabag-b0cce9e6369b0b821c01163a0e4df5552f9924f6.zip |
fix tests for GET /entries/tags
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() |