Commit f6abf4c3 authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

# Fix a problem with not dispatched events during controllers running activities.

parent b0e34101
......@@ -37,6 +37,7 @@ class EcomDev_PHPUnit_Model_App_Area
*/
public function reset()
{
$this->_loadedParts = array();
$this->resetEvents();
$this->resetDesign();
$this->resetTranslate();
......
......@@ -75,8 +75,8 @@ abstract class EcomDev_PHPUnit_Test_Case extends PHPUnit_Framework_TestCase
public static function assertEventDispatched($eventName)
{
if (is_array($eventName)) {
foreach ($eventNames as $eventName) {
self::assertEventDispatched($eventName);
foreach ($eventName as $singleEventName) {
self::assertEventDispatched($singleEventName);
}
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment