aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-11-20 16:25:13 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-11-20 16:25:13 +0100
commit56da73969ac49e400ade89248f87c643047221d6 (patch)
treef1364752f93175b27d91d671069891fc706a3ef7 /tests
parent70584b42aaa75c2fe9adda5cf6c37ab63adcccb3 (diff)
downloadwallabag-56da73969ac49e400ade89248f87c643047221d6.tar.gz
wallabag-56da73969ac49e400ade89248f87c643047221d6.tar.zst
wallabag-56da73969ac49e400ade89248f87c643047221d6.zip
Return an explicit error if reload fail
Diffstat (limited to 'tests')
-rw-r--r--tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php6
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()