protected function setUp() { parent::setUp(); $this->_model = Mage::getModel('Mage_ImportExport_Model_Export_Entity_Product'); $this->_oldDisplayErrors = ini_get('display_errors'); $this->_oldErrorLevel = error_reporting(); $this->_oldIsDeveloperMode = Mage::getIsDeveloperMode(); }
/** * Create all necessary data for tests */ protected function setUp() { parent::setUp(); $this->_model = Mage::getModel('Mage_ImportExport_Model_Import_Entity_Eav_Customer'); $this->_model->setParameters(array('behavior' => Mage_ImportExport_Model_Import::BEHAVIOR_ADD_UPDATE)); $propertyAccessor = new ReflectionProperty($this->_model, '_messageTemplates'); $propertyAccessor->setAccessible(true); $propertyAccessor->setValue($this->_model, array()); $this->_customerData = array('firstname' => 'Firstname', 'lastname' => 'Lastname', 'group_id' => 1, Mage_ImportExport_Model_Import_Entity_Eav_Customer::COLUMN_EMAIL => '*****@*****.**', Mage_ImportExport_Model_Import_Entity_Eav_Customer::COLUMN_WEBSITE => 'base', Mage_ImportExport_Model_Import_Entity_Eav_Customer::COLUMN_STORE => 'default', 'store_id' => 1, 'website_id' => 1, 'password' => 'password'); }
protected function setUp() { parent::setUp(); $this->_model = Mage::getModel('Mage_ImportExport_Model_Import_Entity_Eav_Customer'); }
protected function setUp() { parent::setUp(); $this->_model = Mage::getResourceModel('Mage_ImportExport_Model_Resource_Import_Data'); }
protected function setUp() { parent::setUp(); $this->_block = Mage::getModel('Mage_Core_Model_Layout')->createBlock('Mage_Checkout_Block_Onepage_Payment_Methods'); }
/** * Set up controller params * (non-PHPdoc) * @see Mage_Test_Unit_Case::setUp() */ protected function setUp() { parent::setUp(); $this->reset(); $this->registerCookieStub(); $this->getCookies()->reset(); $this->app()->getFrontController()->init(); }
/** * Create all necessary data for tests */ protected function setUp() { parent::setUp(); $this->_model = $this->getMockForAbstractClass('Mage_ImportExport_Model_Import_Entity_EavAbstract', array(), '', false); }