diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2012-11-28 04:35:52 -0800 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2012-11-28 04:35:52 -0800 |
commit | eaa625c9bc426dcba0427457777a79a3944628a5 (patch) | |
tree | 5f257cb937af78d0bc63f555930e23062cd0b16f /tests | |
parent | 1d4d4fd678cd3d76c4b8a0182ec97f65b9d97b0a (diff) | |
parent | 8bed38c78ddea18ed10a253d0838166d4342a171 (diff) | |
download | nextcloud-server-eaa625c9bc426dcba0427457777a79a3944628a5.tar.gz nextcloud-server-eaa625c9bc426dcba0427457777a79a3944628a5.zip |
Merge pull request #401 from owncloud/share_hooks
Create functions to install standard hooks
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/filesystem.php | 3 | ||||
-rw-r--r-- | tests/lib/share/share.php | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/lib/filesystem.php b/tests/lib/filesystem.php index 0008336383e..5cced4946d9 100644 --- a/tests/lib/filesystem.php +++ b/tests/lib/filesystem.php @@ -74,8 +74,7 @@ class Test_Filesystem extends UnitTestCase { public function testBlacklist() { OC_Hook::clear('OC_Filesystem'); - OC_Hook::connect('OC_Filesystem', 'write', 'OC_Filesystem', 'isBlacklisted'); - OC_Hook::connect('OC_Filesystem', 'rename', 'OC_Filesystem', 'isBlacklisted'); + OC::registerFilesystemHooks(); $run = true; OC_Hook::emit( diff --git a/tests/lib/share/share.php b/tests/lib/share/share.php index 3cdae98ca64..92f5d065cf2 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::registerShareHooks(); } public function tearDown() { |