Sylius\Behat\Page\Shop\Checkout\AddressPageInterface::specifyEmail PHP Method

specifyEmail() public method

public specifyEmail ( string $email )
$email string
    public function specifyEmail($email);

Usage Example

示例#1
0
 /**
  * @When /^I proceed as guest "([^"]*)" with ("[^"]+" as shipping country)$/
  */
 public function iProceedLoggingAsGuestWithAsShippingCountry($email, CountryInterface $shippingCountry = null)
 {
     $this->addressPage->open();
     $this->addressPage->specifyEmail($email);
     $shippingAddress = $this->createDefaultAddress();
     if (null !== $shippingCountry) {
         $shippingAddress->setCountryCode($shippingCountry->getCode());
     }
     $this->addressPage->specifyShippingAddress($shippingAddress);
     $this->addressPage->nextStep();
 }