summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-28 14:00:46 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-28 14:00:46 -0400
commit95cd48dea8f33641adeaf110bf37e088a6d116fa (patch)
tree798f78ddef6c88a2ab93a8bb937ec3079a2006ee /tests
parent9ca62903176a92ec2d1f2e43c036bf848b0a40a7 (diff)
downloadnextcloud-server-95cd48dea8f33641adeaf110bf37e088a6d116fa.tar.gz
nextcloud-server-95cd48dea8f33641adeaf110bf37e088a6d116fa.zip
Fix sharing test case
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/share/share.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/lib/share/share.php b/tests/lib/share/share.php
index 22de5691036..18ca5031ca4 100644
--- a/tests/lib/share/share.php
+++ b/tests/lib/share/share.php
@@ -360,13 +360,12 @@ class Test_Share extends UnitTestCase {
// Attempt user specific target conflict
OC_User::setUserId($this->user3);
- $this->assertTrue(OCP\Share::shareItem('test', 'test.txt', OCP\Share::SHARE_TYPE_GROUP, $this->group1, OCP\Share::PERMISSION_READ | OCP\Share::PERMISSION_SHARE));
+ $this->assertTrue(OCP\Share::shareItem('test', 'share.txt', OCP\Share::SHARE_TYPE_GROUP, $this->group1, OCP\Share::PERMISSION_READ | OCP\Share::PERMISSION_SHARE));
OC_User::setUserId($this->user2);
$to_test = OCP\Share::getItemsSharedWith('test', Test_Share_Backend::FORMAT_TARGET);
$this->assertEqual(count($to_test), 2);
$this->assertTrue(in_array('test.txt', $to_test));
$this->assertTrue(in_array('test1.txt', $to_test));
- $this->dump($to_test, "array of shared items in test");
//$this->assertEqual(OCP\Share::getItemsSharedWith('test', Test_Share_Backend::FORMAT_TARGET), array('test.txt', 'test1.txt'));
// // Valid reshare TODO Broken