summaryrefslogtreecommitdiffstats
path: root/tests/unit/businesslayer/ItemBusinessLayerTest.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-04-04 03:09:17 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-04-04 03:09:26 +0200
commit57e61031877e1f921e7b4446471c61e4c5ac1b13 (patch)
tree7128e8d03cddd191113e0e8e447dcee5437d37d4 /tests/unit/businesslayer/ItemBusinessLayerTest.php
parent8eedcfa1446fb6589cf57ec19ef5b5163b38b5b3 (diff)
register hooks for deleting feeds, folders and items if a user is deleted, fix #468
Diffstat (limited to 'tests/unit/businesslayer/ItemBusinessLayerTest.php')
-rw-r--r--tests/unit/businesslayer/ItemBusinessLayerTest.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/unit/businesslayer/ItemBusinessLayerTest.php b/tests/unit/businesslayer/ItemBusinessLayerTest.php
index 5dc6c9895..c120b753d 100644
--- a/tests/unit/businesslayer/ItemBusinessLayerTest.php
+++ b/tests/unit/businesslayer/ItemBusinessLayerTest.php
@@ -360,6 +360,18 @@ class ItemBusinessLayerTest extends \OCA\AppFramework\Utility\TestUtility {
$this->assertEquals($star, $result);
}
+
+
+ public function testDeleteUser() {
+ $this->mapper->expects($this->once())
+ ->method('deleteUser')
+ ->will($this->returnValue($this->user));
+
+ $this->itemBusinessLayer->deleteUser($this->user);
+ }
+
+
+
}