We will be off on April 7th (Monday) 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
......@@ -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