diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2013-02-26 22:31:15 +0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2013-02-26 22:31:15 +0400 |
commit | 9a2ca0ae6404169062c2d66b89b8bc5fe2fc45af (patch) | |
tree | ea0cc04fc8b9fda4a5aea0ab9f1fddb636481e11 /tests | |
parent | 81c664697b810d591b6b106bce7fde707c465e8f (diff) |
Check resharing setting
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/share/share.php | 5 |
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() { |