Permalink
Browse files

Restore global event managers that were causing cascading failures.

Refs #2105
  • Loading branch information...
1 parent 3e37377 commit 63d867c98b3472316ea250b242b759ef8d386375 @markstory markstory committed Nov 11, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Cake/Test/Case/Event/CakeEventManagerTest.php
@@ -395,6 +395,7 @@ public function testDispatchWithGlobal() {
$generalManager->expects($this->once())->method('prioritisedListeners')->with('fake.event');
$manager->dispatch($event);
+ CakeEventManager::instance(new CakeEventManager());
}
/**
@@ -421,6 +422,7 @@ public function testStopPropagation() {
$expected = array('secondListenerFunction');
$this->assertEquals($expected, $listener->callStack);
+ CakeEventManager::instance(new CakeEventManager());
}
/**
@@ -451,6 +453,7 @@ public function testDispatchPrioritizedWithGlobal() {
$expected = array('listenerFunction', 'secondListenerFunction', 'thirdListenerFunction');
$this->assertEquals($expected, $listener->callStack);
+ CakeEventManager::instance(new CakeEventManager());
}
/**
@@ -480,6 +483,7 @@ public function testDispatchGlobalBeforeLocal() {
$expected = array('listenerFunction', 'secondListenerFunction');
$this->assertEquals($expected, $listener->callStack);
+ CakeEventManager::instance(new CakeEventManager());
}
}

0 comments on commit 63d867c

Please sign in to comment.