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 ...@@ -37,6 +37,7 @@ class EcomDev_PHPUnit_Model_App_Area
*/ */
public function reset() public function reset()
{ {
$this->_loadedParts = array();
$this->resetEvents(); $this->resetEvents();
$this->resetDesign(); $this->resetDesign();
$this->resetTranslate(); $this->resetTranslate();
......
...@@ -75,8 +75,8 @@ abstract class EcomDev_PHPUnit_Test_Case extends PHPUnit_Framework_TestCase ...@@ -75,8 +75,8 @@ abstract class EcomDev_PHPUnit_Test_Case extends PHPUnit_Framework_TestCase
public static function assertEventDispatched($eventName) public static function assertEventDispatched($eventName)
{ {
if (is_array($eventName)) { if (is_array($eventName)) {
foreach ($eventNames as $eventName) { foreach ($eventName as $singleEventName) {
self::assertEventDispatched($eventName); self::assertEventDispatched($singleEventName);
} }
return; 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