diff --git a/lib/Cake/Test/Case/Event/CakeEventManagerTest.php b/lib/Cake/Test/Case/Event/CakeEventManagerTest.php index 7053dddcf..7df403da4 100644 --- a/lib/Cake/Test/Case/Event/CakeEventManagerTest.php +++ b/lib/Cake/Test/Case/Event/CakeEventManagerTest.php @@ -395,6 +395,7 @@ class CakeEventManagerTest extends CakeTestCase { $generalManager->expects($this->once())->method('prioritisedListeners')->with('fake.event'); $manager->dispatch($event); + CakeEventManager::instance(new CakeEventManager()); } /** @@ -421,6 +422,7 @@ class CakeEventManagerTest extends CakeTestCase { $expected = array('secondListenerFunction'); $this->assertEquals($expected, $listener->callStack); + CakeEventManager::instance(new CakeEventManager()); } /** @@ -451,6 +453,7 @@ class CakeEventManagerTest extends CakeTestCase { $expected = array('listenerFunction', 'secondListenerFunction', 'thirdListenerFunction'); $this->assertEquals($expected, $listener->callStack); + CakeEventManager::instance(new CakeEventManager()); } /** @@ -480,6 +483,7 @@ class CakeEventManagerTest extends CakeTestCase { $expected = array('listenerFunction', 'secondListenerFunction'); $this->assertEquals($expected, $listener->callStack); + CakeEventManager::instance(new CakeEventManager()); } }