summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-08-05 16:39:09 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-08-05 16:39:09 +0200
commitcb33a80b60b16942132cb356badaf9d18b0ca696 (patch)
tree0a0e2965938c23cd7c34492a17a4ae034aaf5803 /tests
parentf58dff275919263182fa740f05f9fd9213e30138 (diff)
ignore update errors when using the update script
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/external/FeedAPITest.php6
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);
}