/**
  * Run delete customer address entity test.
  *
  * @param Customer $customer
  * @return array
  */
 public function test(Customer $customer)
 {
     // Preconditions:
     $customer->persist();
     $addressToDelete = $customer->getDataFieldConfig('address')['source']->getAddresses()[0];
     // Steps:
     $this->objectManager->create('Mage\\Customer\\Test\\TestStep\\LoginCustomerOnFrontendStep', ['customer' => $customer])->run();
     $this->customerAccountIndex->getAccountNavigationBlock()->openNavigationItem('Address Book');
     $this->customerAddress->getBookBlock()->getAdditionalAddressBlock()->deleteAddress($addressToDelete);
     return ['deletedAddress' => $addressToDelete];
 }
 /**
  * Asserts that 'Additional Address Entries' contains expected message.
  *
  * @param CustomerAccountIndex $customerAccountIndex
  * @param CustomerAddress $customerAddress
  * @return void
  */
 public function processAssert(CustomerAccountIndex $customerAccountIndex, CustomerAddress $customerAddress)
 {
     $customerAccountIndex->open();
     $customerAccountIndex->getAccountNavigationBlock()->openNavigationItem('Address Book');
     \PHPUnit_Framework_Assert::assertEquals(self::EXPECTED_MESSAGE, $customerAddress->getBookBlock()->getAdditionalAddressBlock()->getBlockText(), 'Expected text is absent in Additional Address block.');
 }