Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-02-26 22:31:15 +0400
committerMichael Gapczynski <mtgap@owncloud.com>2013-02-26 22:31:15 +0400
commit9a2ca0ae6404169062c2d66b89b8bc5fe2fc45af (patch)
treeea0cc04fc8b9fda4a5aea0ab9f1fddb636481e11 /tests
parent81c664697b810d591b6b106bce7fde707c465e8f (diff)
Check resharing setting
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/share/share.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib/share/share.php b/tests/lib/share/share.php
index ab43e47726b..e7d441a7e78 100644
--- a/tests/lib/share/share.php
+++ b/tests/lib/share/share.php
@@ -28,7 +28,7 @@ class Test_Share extends PHPUnit_Framework_TestCase {
protected $groupBackend;
protected $group1;
protected $group2;
-
+ protected $resharing;
public function setUp() {
OC_User::clearBackends();
@@ -56,11 +56,14 @@ class Test_Share extends PHPUnit_Framework_TestCase {
OCP\Share::registerBackend('test', 'Test_Share_Backend');
OC_Hook::clear('OCP\\Share');
OC::registerShareHooks();
+ $this->resharing = OC_Appconfig::getValue('core', 'shareapi_allow_resharing', 'yes');
+ OC_Appconfig::setValue('core', 'shareapi_allow_resharing', 'yes');
}
public function tearDown() {
$query = OC_DB::prepare('DELETE FROM `*PREFIX*share` WHERE `item_type` = ?');
$query->execute(array('test'));
+ OC_Appconfig::setValue('core', 'shareapi_allow_resharing', $this->resharing);
}
public function testShareInvalidShareType() {