From 6578f00b4bcfbd5bc44bc12e341506f922498d7b Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Wed, 4 Jun 2014 11:07:31 +0200 Subject: unify share settings --- tests/lib/share/share.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/lib/share/share.php b/tests/lib/share/share.php index aae91fa1087..95983ee70e6 100644 --- a/tests/lib/share/share.php +++ b/tests/lib/share/share.php @@ -384,8 +384,8 @@ class Test_Share extends PHPUnit_Framework_TestCase { } catch (Exception $exception) { $this->assertEquals($message, $exception->getMessage()); } - $policy = OC_Appconfig::getValue('core', 'shareapi_share_policy', 'global'); - OC_Appconfig::setValue('core', 'shareapi_share_policy', 'groups_only'); + $policy = OC_Appconfig::getValue('core', 'shareapi_only_share_with_group_members', 'no'); + OC_Appconfig::setValue('core', 'shareapi_only_share_with_group_members', 'yes'); $message = 'Sharing test.txt failed, because '.$this->user1.' is not a member of the group '.$this->group2; try { OCP\Share::shareItem('test', 'test.txt', OCP\Share::SHARE_TYPE_GROUP, $this->group2, OCP\PERMISSION_READ); @@ -393,7 +393,7 @@ class Test_Share extends PHPUnit_Framework_TestCase { } catch (Exception $exception) { $this->assertEquals($message, $exception->getMessage()); } - OC_Appconfig::setValue('core', 'shareapi_share_policy', $policy); + OC_Appconfig::setValue('core', 'shareapi_only_share_with_group_members', $policy); // Valid share $this->shareUserOneTestFileWithGroupOne(); -- cgit v1.2.3