diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-11-20 16:25:13 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-11-20 16:25:13 +0100 |
commit | 56da73969ac49e400ade89248f87c643047221d6 (patch) | |
tree | f1364752f93175b27d91d671069891fc706a3ef7 /tests/Wallabag/ApiBundle | |
parent | 70584b42aaa75c2fe9adda5cf6c37ab63adcccb3 (diff) | |
download | wallabag-56da73969ac49e400ade89248f87c643047221d6.tar.gz wallabag-56da73969ac49e400ade89248f87c643047221d6.tar.zst wallabag-56da73969ac49e400ade89248f87c643047221d6.zip |
Return an explicit error if reload fail
Diffstat (limited to 'tests/Wallabag/ApiBundle')
-rw-r--r-- | tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php index 409a8291..432ce7d8 100644 --- a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php +++ b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | |||
@@ -690,7 +690,11 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
690 | } | 690 | } |
691 | 691 | ||
692 | $this->client->request('PATCH', '/api/entries/'.$entry->getId().'/reload.json'); | 692 | $this->client->request('PATCH', '/api/entries/'.$entry->getId().'/reload.json'); |
693 | $this->assertEquals(304, $this->client->getResponse()->getStatusCode()); | 693 | $this->assertEquals(400, $this->client->getResponse()->getStatusCode()); |
694 | |||
695 | $this->assertContains('Error while trying to extract content', $this->client->getResponse()->getContent()); | ||
696 | |||
697 | $this->assertEquals('application/json', $this->client->getResponse()->headers->get('Content-Type')); | ||
694 | } | 698 | } |
695 | 699 | ||
696 | public function testReloadEntry() | 700 | public function testReloadEntry() |