Commit 9742b6a1 authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

Merge pull request #241 from kojiromike/observe-and-report

Disable Events without Disabling Event Capture
parents 0a8932d6 1e7a0d4e
...@@ -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