Esempio n. 1
0
 /**
  * Define if module is allowed
  *
  * Magento core allows use of a whitelist of modules supplied via the
  * addAllowedModules method.  EcomDev_PHPUnit extends this to allow a
  * blacklist of modules to be supplied via local.xml.phpunit.
  *
  * @see Mage_Core_Model_Config::_isAllowedModule()
  * @param  string $moduleName
  * @return bool
  */
 protected function _isAllowedModule($moduleName)
 {
     if (!parent::_isAllowedModule($moduleName)) {
         return false;
     }
     $localXml = $this->_loadLocalXmlForTest();
     if ($localXml) {
         $node = $localXml->getNode("phpunit/disable_modules/{$moduleName}");
         return $node === false;
     }
     return true;
 }