diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-07-18 14:12:32 +0400 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-07-18 14:12:32 +0400 |
commit | 51185c1b53222d70663bd723bc067f45f52b7110 (patch) | |
tree | a813d96875b95165989d651ff88620236a8ec865 /apps/files_encryption | |
parent | 6ef2acb82b78fe8a3c48c05324d8895f30db15e9 (diff) |
make sure that we don't connect hooks multiple times
Diffstat (limited to 'apps/files_encryption')
-rwxr-xr-x | apps/files_encryption/tests/share.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_encryption/tests/share.php b/apps/files_encryption/tests/share.php index 5506ea6ec92..cf52022dc5e 100755 --- a/apps/files_encryption/tests/share.php +++ b/apps/files_encryption/tests/share.php @@ -64,7 +64,7 @@ class Test_Encryption_Share extends \PHPUnit_Framework_TestCase { \OC_Appconfig::setValue('core', 'shareapi_allow_resharing', 'yes'); // clear share hooks - \OC_Hook::clear('OCP\\Share'); + \OC_Hook::clear(); \OC::registerShareHooks(); \OCP\Util::connectHook('OC_Filesystem', 'setup', '\OC\Files\Storage\Shared', 'setup'); |