diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-06-05 17:23:42 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-06-05 17:23:42 +0200 |
commit | 1c598085176e4bef12f5fbcd221ef6b832b734bb (patch) | |
tree | edf58b2d3ed7e4fa4e187740ecf01485098a792b /tests | |
parent | 4b650a20a42b70412cee9dd835e096e16da6d530 (diff) | |
parent | 6578f00b4bcfbd5bc44bc12e341506f922498d7b (diff) | |
download | nextcloud-server-1c598085176e4bef12f5fbcd221ef6b832b734bb.tar.gz nextcloud-server-1c598085176e4bef12f5fbcd221ef6b832b734bb.zip |
Merge pull request #8865 from owncloud/improve_share_settings
Improve share settings
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/share/share.php | 6 |
1 files changed, 3 insertions, 3 deletions
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(); |