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
......@@ -225,10 +225,10 @@ class EcomDev_PHPUnit_Model_App extends Mage_Core_Model_App
$this->replaceRegistry(self::REGISTRY_PATH_SHARED_STORAGE, new Varien_Object());
return $this;
}
/**
* Sets cache options for test case
*
*
* @param array $options
* @return EcomDev_PHPUnit_Model_App
*/
......@@ -243,7 +243,7 @@ class EcomDev_PHPUnit_Model_App extends Mage_Core_Model_App
/**
* Retrieve cache options for test case
*
*
* @return array
*/
public function getCacheOptions()
......@@ -358,7 +358,7 @@ class EcomDev_PHPUnit_Model_App extends Mage_Core_Model_App
/**
* Returns request for test suite
*
*
* @see Mage_Core_Model_App::getRequest()
* @return EcomDev_PHPUnit_Controller_Request_Http
*/
......@@ -376,7 +376,7 @@ class EcomDev_PHPUnit_Model_App extends Mage_Core_Model_App
/**
* Returns response for test suite
*
*
* @see Mage_Core_Model_App::getResponse()
* @return EcomDev_PHPUnit_Controller_Response_Http
*/
......@@ -527,14 +527,14 @@ 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]++;
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