/** * Check customer email validation for delete behavior * * @covers Mage_ImportExport_Model_Import_Entity_Eav_Customer::validateRow */ public function testValidateEmailForDeleteBehavior() { $this->_customerData[Mage_ImportExport_Model_Import_Entity_Eav_Customer::COLUMN_EMAIL] = '*****@*****.**'; $this->_model->setParameters(array('behavior' => Mage_ImportExport_Model_Import::BEHAVIOR_DELETE)); $this->_model->validateRow($this->_customerData, 0); $this->assertGreaterThan(0, $this->_model->getErrorsCount()); $this->assertArrayHasKey(Mage_ImportExport_Model_Import_Entity_Eav_Customer::ERROR_CUSTOMER_NOT_FOUND, $this->_model->getErrorMessages()); }
/** * Returns error counter value * * @return int */ public function getErrorsCount() { return $this->_customerEntity->getErrorsCount() + $this->_addressEntity->getErrorsCount() + parent::getErrorsCount(); }