const TEST_FILES_SHARING_API_USER1 = "test-share-user1";
const TEST_FILES_SHARING_API_USER2 = "test-share-user2";
- const TEST_FILES_SHARING_API_USER3 = "test-share-user3";
- const TEST_FILES_SHARING_API_USER4 = "test-share-user4";
- const TEST_FILES_SHARING_API_GROUP1 = "test-share-group1";
public $filename;
public $data;
\OC_User::clearBackends();
\OC_User::useBackend('database');
- // enable resharing
- \OC_Appconfig::setValue('core', 'shareapi_allow_resharing', 'yes');
-
// clear share hooks
\OC_Hook::clear('OCP\\Share');
\OC::registerShareHooks();