mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
fix tests for GET /entries/tags
This commit is contained in:
parent
1df1204d94
commit
b0cce9e636
3 changed files with 24 additions and 4 deletions
|
@ -159,6 +159,8 @@ class WallabagRestControllerTest extends WallabagTestCase
|
|||
->getRepository('WallabagCoreBundle:Entry')
|
||||
->findOneWithTags(1);
|
||||
|
||||
$entry = $entry[0];
|
||||
|
||||
if (!$entry) {
|
||||
$this->markTestSkipped('No content found in db.');
|
||||
}
|
||||
|
@ -170,7 +172,7 @@ class WallabagRestControllerTest extends WallabagTestCase
|
|||
|
||||
$client->request('GET', '/api/entries/'.$entry->getId().'/tags', array(), array(), $headers);
|
||||
|
||||
$this->assertEquals(json_encode($tags), $client->getResponse()->getContent());
|
||||
$this->assertEquals(json_encode($tags, JSON_HEX_QUOT), $client->getResponse()->getContent());
|
||||
}
|
||||
|
||||
public function testPostTagsOnEntry()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue