/** * @When /^I proceed as guest "([^"]*)" with ("[^"]+" as shipping country)$/ */ public function iProceedLoggingAsGuestWithAsShippingCountry($email, CountryInterface $shippingCountry = null) { $this->addressingPage->open(); $this->addressingPage->specifyEmail($email); $shippingAddress = $this->createDefaultAddress(); if (null !== $shippingCountry) { $shippingAddress->setCountryCode($shippingCountry->getCode()); } $this->addressingPage->specifyShippingAddress($shippingAddress); $this->addressingPage->nextStep(); }
/** * @When I specify the email as :email * @When I do not specify the email */ public function iSpecifyTheEmail($email = null) { $this->addressingPage->specifyEmail($email); }