From cb33a80b60b16942132cb356badaf9d18b0ca696 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 5 Aug 2013 16:39:09 +0200 Subject: ignore update errors when using the update script --- tests/unit/external/FeedAPITest.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/unit') diff --git a/tests/unit/external/FeedAPITest.php b/tests/unit/external/FeedAPITest.php index 2963125b2..9a092a84e 100644 --- a/tests/unit/external/FeedAPITest.php +++ b/tests/unit/external/FeedAPITest.php @@ -491,16 +491,14 @@ class FeedAPITest extends ControllerTestUtility { } - public function testUpdateNotFound() { + public function testUpdateError() { $this->feedBusinessLayer->expects($this->once()) ->method('update') ->will($this->throwException(new BusinessLayerException($this->msg))); $response = $this->feedAPI->update(); - $data = $response->getData(); - $this->assertEquals($this->msg, $data['message']); - $this->assertEquals(Http::STATUS_NOT_FOUND, $response->getStatus()); + $this->assertTrue($response instanceof JSONResponse); } -- cgit v1.2.3