Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 /**
  * 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');
 }
Esempio n. 3
0
 protected function setUp()
 {
     parent::setUp();
     $this->_model = Mage::getModel('Mage_ImportExport_Model_Import_Entity_Eav_Customer');
 }
Esempio n. 4
0
 protected function setUp()
 {
     parent::setUp();
     $this->_model = Mage::getResourceModel('Mage_ImportExport_Model_Resource_Import_Data');
 }
Esempio n. 5
0
 protected function setUp()
 {
     parent::setUp();
     $this->_block = Mage::getModel('Mage_Core_Model_Layout')->createBlock('Mage_Checkout_Block_Onepage_Payment_Methods');
 }
Esempio n. 6
0
 /**
  * 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();
 }
Esempio n. 7
0
 /**
  * Create all necessary data for tests
  */
 protected function setUp()
 {
     parent::setUp();
     $this->_model = $this->getMockForAbstractClass('Mage_ImportExport_Model_Import_Entity_EavAbstract', array(), '', false);
 }