public function testValidateEmailForDeleteBehavior()
 {
     $this->_customerData[Customer::COLUMN_EMAIL] = '*****@*****.**';
     $this->_model->setParameters(['behavior' => Import::BEHAVIOR_DELETE]);
     $this->_model->validateRow($this->_customerData, 0);
     $this->assertGreaterThan(0, $this->_model->getErrorsCount());
     $this->assertArrayHasKey(Customer::ERROR_CUSTOMER_NOT_FOUND, $this->_model->getErrorMessages());
 }
Beispiel #2
0
 /**
  * Returns error counter value
  *
  * @return int
  */
 public function getErrorsCount()
 {
     return $this->_customerEntity->getErrorsCount() + $this->_addressEntity->getErrorsCount() + parent::getErrorsCount();
 }