summaryrefslogtreecommitdiffstats
path: root/tests/unit/external/FolderAPITest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/external/FolderAPITest.php')
-rw-r--r--tests/unit/external/FolderAPITest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/external/FolderAPITest.php b/tests/unit/external/FolderAPITest.php
index 654a4fbae..aaae2d084 100644
--- a/tests/unit/external/FolderAPITest.php
+++ b/tests/unit/external/FolderAPITest.php
@@ -113,6 +113,9 @@ class FolderAPITest extends \PHPUnit_Framework_TestCase {
);
$this->folderBusinessLayer->expects($this->once())
+ ->method('purgeDeleted')
+ ->with($this->equalTo($this->user));
+ $this->folderBusinessLayer->expects($this->once())
->method('create')
->with($this->equalTo($folderName), $this->equalTo($this->user))
->will($this->returnValue($folder));
@@ -128,6 +131,9 @@ class FolderAPITest extends \PHPUnit_Framework_TestCase {
public function testCreateAlreadyExists() {
$msg = 'exists';
$this->folderBusinessLayer->expects($this->once())
+ ->method('purgeDeleted')
+ ->with($this->equalTo($this->user));
+ $this->folderBusinessLayer->expects($this->once())
->method('create')
->will($this->throwException(new BusinessLayerExistsException($msg)));