diff options
Diffstat (limited to 'tests/unit/external/FeedAPITest.php')
-rw-r--r-- | tests/unit/external/FeedAPITest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unit/external/FeedAPITest.php b/tests/unit/external/FeedAPITest.php index 9a092a84e..e490bbdf9 100644 --- a/tests/unit/external/FeedAPITest.php +++ b/tests/unit/external/FeedAPITest.php @@ -494,7 +494,11 @@ class FeedAPITest extends ControllerTestUtility { public function testUpdateError() { $this->feedBusinessLayer->expects($this->once()) ->method('update') - ->will($this->throwException(new BusinessLayerException($this->msg))); + ->will($this->throwException(new \Exception($this->msg))); + $this->api->expects($this->once()) + ->method('log') + ->with($this->equalTo('Could not update feed ' . $this->msg), + $this->equalTo('debug')); $response = $this->feedAPI->update(); |