1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Return an explicit error if reload fail

This commit is contained in:
Jeremy Benoist 2016-11-20 16:25:13 +01:00
parent 70584b42aa
commit 56da73969a
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
2 changed files with 8 additions and 7 deletions

View file

@ -690,7 +690,11 @@ class EntryRestControllerTest extends WallabagApiTestCase
}
$this->client->request('PATCH', '/api/entries/'.$entry->getId().'/reload.json');
$this->assertEquals(304, $this->client->getResponse()->getStatusCode());
$this->assertEquals(400, $this->client->getResponse()->getStatusCode());
$this->assertContains('Error while trying to extract content', $this->client->getResponse()->getContent());
$this->assertEquals('application/json', $this->client->getResponse()->headers->get('Content-Type'));
}
public function testReloadEntry()