File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -395,6 +395,7 @@ public function testDispatchWithGlobal() {
395
395
396
396
$ generalManager ->expects ($ this ->once ())->method ('prioritisedListeners ' )->with ('fake.event ' );
397
397
$ manager ->dispatch ($ event );
398
+ CakeEventManager::instance (new CakeEventManager ());
398
399
}
399
400
400
401
/**
@@ -421,6 +422,7 @@ public function testStopPropagation() {
421
422
422
423
$ expected = array ('secondListenerFunction ' );
423
424
$ this ->assertEquals ($ expected , $ listener ->callStack );
425
+ CakeEventManager::instance (new CakeEventManager ());
424
426
}
425
427
426
428
/**
@@ -451,6 +453,7 @@ public function testDispatchPrioritizedWithGlobal() {
451
453
452
454
$ expected = array ('listenerFunction ' , 'secondListenerFunction ' , 'thirdListenerFunction ' );
453
455
$ this ->assertEquals ($ expected , $ listener ->callStack );
456
+ CakeEventManager::instance (new CakeEventManager ());
454
457
}
455
458
456
459
/**
@@ -480,6 +483,7 @@ public function testDispatchGlobalBeforeLocal() {
480
483
481
484
$ expected = array ('listenerFunction ' , 'secondListenerFunction ' );
482
485
$ this ->assertEquals ($ expected , $ listener ->callStack );
486
+ CakeEventManager::instance (new CakeEventManager ());
483
487
}
484
488
485
489
}
You can’t perform that action at this time.
0 commit comments