diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-11-13 23:45:17 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-11-13 23:45:17 +0100 |
commit | 530f3f8be9336ec49eab9f00e2c3b15d29bc78c7 (patch) | |
tree | 4554fda5274e69523269ba938878f48bafdd01bb /tests/lib/share | |
parent | ad85087fccf52ab68899b38b8bab28c0d17b673d (diff) | |
download | nextcloud-server-530f3f8be9336ec49eab9f00e2c3b15d29bc78c7.tar.gz nextcloud-server-530f3f8be9336ec49eab9f00e2c3b15d29bc78c7.zip |
Create functions to install standard hooks
Also use these in tests that needs them
Fix #151
Diffstat (limited to 'tests/lib/share')
-rw-r--r-- | tests/lib/share/share.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/share/share.php b/tests/lib/share/share.php index 3cdae98ca64..25656c6bcd5 100644 --- a/tests/lib/share/share.php +++ b/tests/lib/share/share.php @@ -54,6 +54,8 @@ class Test_Share extends UnitTestCase { OC_Group::addToGroup($this->user2, $this->group2); OC_Group::addToGroup($this->user4, $this->group2); OCP\Share::registerBackend('test', 'Test_Share_Backend'); + OC_Hook::clear('OCP\\Share'); + OC::installShareHooks(); } public function tearDown() { |