summaryrefslogtreecommitdiffstats
path: root/tests/unit/external/FeedAPITest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/external/FeedAPITest.php')
-rw-r--r--tests/unit/external/FeedAPITest.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/unit/external/FeedAPITest.php b/tests/unit/external/FeedAPITest.php
index 8e0d78731..c6d8247f5 100644
--- a/tests/unit/external/FeedAPITest.php
+++ b/tests/unit/external/FeedAPITest.php
@@ -209,7 +209,9 @@ class FeedAPITest extends \PHPUnit_Framework_TestCase {
$this->itemBusinessLayer
);
-
+ $this->feedBusinessLayer->expects($this->once())
+ ->method('purgeDeleted')
+ ->with($this->equalTo($this->user));
$this->feedBusinessLayer->expects($this->once())
->method('create')
->with(
@@ -249,7 +251,9 @@ class FeedAPITest extends \PHPUnit_Framework_TestCase {
$this->itemBusinessLayer
);
-
+ $this->feedBusinessLayer->expects($this->once())
+ ->method('purgeDeleted')
+ ->with($this->equalTo($this->user));
$this->feedBusinessLayer->expects($this->once())
->method('create')
->with(
@@ -275,6 +279,9 @@ class FeedAPITest extends \PHPUnit_Framework_TestCase {
public function testCreateExists() {
$this->feedBusinessLayer->expects($this->once())
+ ->method('purgeDeleted')
+ ->with($this->equalTo($this->user));
+ $this->feedBusinessLayer->expects($this->once())
->method('create')
->will($this->throwException(new BusinessLayerExistsException($this->msg)));