Exemple #1
0
 /**
  * @Given /^(his) default (address is "(?:[^"]+)", "(?:[^"]+)", "(?:[^"]+)", "(?:[^"]+)" for "(?:[^"]+)")$/
  * @Given /^(his) default (address is "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)")$/
  */
 public function heHasDefaultAddress(CustomerInterface $customer, AddressInterface $address)
 {
     $customer->setDefaultAddress($address);
     $this->customerManager->flush();
 }
Exemple #2
0
 /**
  * @param CustomerInterface $customer
  * @param AddressInterface $address
  */
 private function setDefaultAddressOfCustomer(CustomerInterface $customer, AddressInterface $address)
 {
     $customer->setDefaultAddress($address);
     $this->customerManager->flush();
 }