diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-09-02 20:01:09 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-09-02 20:01:09 -0400 |
commit | 4c065deb55b1c61059c7693c5861a68869758607 (patch) | |
tree | bdaf607185425844f044265cf0861d082e19597b /tests | |
parent | dc569ea300ac7112aec7ca6f4e2e409ba8fb7382 (diff) | |
download | nextcloud-server-4c065deb55b1c61059c7693c5861a68869758607.tar.gz nextcloud-server-4c065deb55b1c61059c7693c5861a68869758607.zip |
Listen to post_deleteGroup hook in Share API
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/share/share.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/share/share.php b/tests/lib/share/share.php index 082e265571b..b45779038ba 100644 --- a/tests/lib/share/share.php +++ b/tests/lib/share/share.php @@ -384,6 +384,10 @@ class Test_Share extends UnitTestCase { $this->assertEqual(OCP\Share::getItemsSharedWith('test', Test_Share_Backend::FORMAT_TARGET), array('test.txt')); // Remove group + OC_Group::deleteGroup($this->group1); + $this->assertEqual(OCP\Share::getItemsSharedWith('test', Test_Share_Backend::FORMAT_TARGET), array()); + OC_User::setUserId($this->user3); + $this->assertEqual(OCP\Share::getItemsShared('test'), array()); } } |