summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-08-05 17:38:34 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-08-05 17:38:34 +0200
commit1a74a758f9811a621e636f53d7393dae01199337 (patch)
tree9f301dbfdc4850e252ea3205aa5c95447146355e /tests
parentd0bce145e7a5be8f06c8875b2de7c41d164d9d57 (diff)
also log errors when updating with update script
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/external/FeedAPITest.php6
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();