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

specifyShippingAddress() public method

public specifyShippingAddress ( Sylius\Component\Core\Model\AddressInterface $shippingAddress )
$shippingAddress Sylius\Component\Core\Model\AddressInterface
    public function specifyShippingAddress(AddressInterface $shippingAddress);

Usage Example

Ejemplo n.º 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();
 }