summaryrefslogtreecommitdiffstats
path: root/tests/lib/hooks/legacyemitter.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/hooks/legacyemitter.php')
-rw-r--r--tests/lib/hooks/legacyemitter.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/hooks/legacyemitter.php b/tests/lib/hooks/legacyemitter.php
index a7bed879a72..f030afbc090 100644
--- a/tests/lib/hooks/legacyemitter.php
+++ b/tests/lib/hooks/legacyemitter.php
@@ -26,7 +26,9 @@ class LegacyEmitter extends BasicEmitter {
//we can't use exceptions here since OC_Hooks catches all exceptions
private static $emitted = false;
- public function setUp() {
+ protected function setUp() {
+ parent::setUp();
+
$this->emitter = new DummyLegacyEmitter();
self::$emitted = false;
\OC_Hook::clear('Test','test');