Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Restore global event managers that were causing cascading failures.
Refs #2105
  • Loading branch information
markstory committed Nov 11, 2013
1 parent 3e37377 commit 63d867c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Cake/Test/Case/Event/CakeEventManagerTest.php
Expand Up @@ -395,6 +395,7 @@ public function testDispatchWithGlobal() {

$generalManager->expects($this->once())->method('prioritisedListeners')->with('fake.event');
$manager->dispatch($event);
CakeEventManager::instance(new CakeEventManager());
}

/**
Expand All @@ -421,6 +422,7 @@ public function testStopPropagation() {

$expected = array('secondListenerFunction');
$this->assertEquals($expected, $listener->callStack);
CakeEventManager::instance(new CakeEventManager());
}

/**
Expand Down Expand Up @@ -451,6 +453,7 @@ public function testDispatchPrioritizedWithGlobal() {

$expected = array('listenerFunction', 'secondListenerFunction', 'thirdListenerFunction');
$this->assertEquals($expected, $listener->callStack);
CakeEventManager::instance(new CakeEventManager());
}

/**
Expand Down Expand Up @@ -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.