Commit 1e7a0d4e authored by Michael A. Smith's avatar Michael A. Smith

Disable Events without Disabling Event Capture

Signed-off-by: default avatarMichael A. Smith <msmith3@ebay.com>
parent 0a8932d6
......@@ -527,13 +527,13 @@ class EcomDev_PHPUnit_Model_App extends Mage_Core_Model_App
{
if ($this->_eventsEnabled) {
parent::dispatchEvent($eventName, $args);
}
if (!isset($this->_dispatchedEvents[$eventName])) {
$this->_dispatchedEvents[$eventName] = 0;
}
$this->_dispatchedEvents[$eventName]++;
}
return $this;
}
......
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