We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

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 ...@@ -527,13 +527,13 @@ class EcomDev_PHPUnit_Model_App extends Mage_Core_Model_App
{ {
if ($this->_eventsEnabled) { if ($this->_eventsEnabled) {
parent::dispatchEvent($eventName, $args); parent::dispatchEvent($eventName, $args);
}
if (!isset($this->_dispatchedEvents[$eventName])) { if (!isset($this->_dispatchedEvents[$eventName])) {
$this->_dispatchedEvents[$eventName] = 0; $this->_dispatchedEvents[$eventName] = 0;
} }
$this->_dispatchedEvents[$eventName]++; $this->_dispatchedEvents[$eventName]++;
}
return $this; 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