summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-16 12:20:14 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-16 12:20:14 -0400
commitdf8a2e5361714838637457373f9957c76fbf449f (patch)
tree4067c30456a8d5221e19c59f030e7b223bd2bc2a /tests
parent9cb3113f421fd57529aa5e9d10a5e9ca9beece70 (diff)
downloadnextcloud-server-df8a2e5361714838637457373f9957c76fbf449f.tar.gz
nextcloud-server-df8a2e5361714838637457373f9957c76fbf449f.zip
File sharing cleanup, works perfectly I think :)
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/share/share.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/share/share.php b/tests/lib/share/share.php
index 4b73cc183a3..efff2c5522c 100644
--- a/tests/lib/share/share.php
+++ b/tests/lib/share/share.php
@@ -233,6 +233,8 @@ class Test_Share extends UnitTestCase {
$this->assertTrue(OCP\Share::shareItem('test', 'test.txt', OCP\Share::SHARE_TYPE_USER, $this->user2, OCP\Share::PERMISSION_READ));
OC_User::setUserId($this->user2);
$this->assertEqual(OCP\Share::getItemsSharedWith('test', Test_Share_Backend::FORMAT_TARGET), array('test.txt', 'test1.txt'));
+
+ // Remove user
}
public function testShareWithGroup() {
@@ -280,6 +282,12 @@ class Test_Share extends UnitTestCase {
$this->assertEqual(OCP\Share::getItemsSharedWith('test', Test_Share_Backend::FORMAT_TARGET), array('test.txt', 'test1.txt'));
OC_User::setUserId($this->user3);
$this->assertEqual(OCP\Share::getItemsSharedWith('test', Test_Share_Backend::FORMAT_TARGET), array('test.txt'));
+
+ // Remove user from group
+
+ // Add user to group
+
+ // Remove group
}
}