/**
  * @covers Mage_ImportExport_Model_Import_Entity_CustomerComposite::_prepareAddressRowData
  */
 public function testPrepareAddressRowData()
 {
     $customerEntity = $this->_getCustomerEntityMock();
     $this->_entityMockedMethods[] = 'getCustomerStorage';
     $addressEntity = $this->_getAddressEntityMock();
     $customerEntity->expects($this->once())->method('validateRow')->will($this->returnValue(true));
     $addressEntity->expects($this->once())->method('validateRow')->will($this->returnCallback(array($this, 'validateAddressRowParams')));
     $customerStorage = $this->getMock('stdClass', array('getCustomerId'));
     $customerStorage->expects($this->any())->method('getCustomerId')->will($this->returnValue(true));
     $addressEntity->expects($this->any())->method('getCustomerStorage')->will($this->returnValue($customerStorage));
     $data = $this->_getModelDependencies();
     $data['customer_entity'] = $customerEntity;
     $data['address_entity'] = $addressEntity;
     $this->_model = new Mage_ImportExport_Model_Import_Entity_CustomerComposite($data);
     $rowData = array(Mage_ImportExport_Model_Import_Entity_Eav_Customer::COLUMN_EMAIL => '*****@*****.**', Mage_ImportExport_Model_Import_Entity_Eav_Customer::COLUMN_WEBSITE => 'admin', Mage_ImportExport_Model_Import_Entity_Eav_Customer_Address::COLUMN_ADDRESS_ID => null, Mage_ImportExport_Model_Import_Entity_CustomerComposite::COLUMN_DEFAULT_BILLING => true, Mage_ImportExport_Model_Import_Entity_CustomerComposite::COLUMN_DEFAULT_SHIPPING => true, 'firstname' => 'John', 'lastname' => 'Doe', 'dob' => '1984-11-11');
     $this->_model->validateRow($rowData, 1);
 }