diff options
Diffstat (limited to 'tests/unit/external/FeedAPITest.php')
-rw-r--r-- | tests/unit/external/FeedAPITest.php | 6 |
1 files changed, 2 insertions, 4 deletions
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); } |