/** * @When /^I complete addressing step with email "([^"]+)" and ("([^"]+)" as shipping country)$/ */ public function iCompleteAddressingStepWithEmail($email, AddressInterface $address) { $this->addressingPage->open(); $this->iSpecifyTheEmail($email); $this->iSpecifyTheShippingAddressAs($address); $this->iCompleteTheAddressingStep(); }
/** * @When /^I specified the shipping (address as "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)" for "([^"]+)")$/ */ public function iSpecifiedTheShippingAddress(AddressInterface $address) { $this->addressingPage->open(); $this->iSpecifyTheShippingAddressAs($address); $key = sprintf('billing_address_%s_%s', strtolower($address->getFirstName()), strtolower($address->getLastName())); $this->sharedStorage->set($key, $address); $this->iCompleteTheAddressingStep(); }
/** * @When /^I specified the shipping (address as "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)" for "([^"]+)")$/ */ public function iSpecifiedTheShippingAddress(AddressInterface $address) { $this->addressingPage->open(); $this->addressingPage->specifyShippingAddress($address); $this->iCompleteTheAddressingStep(); }