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

specifyBillingAddress() public method

public specifyBillingAddress ( Sylius\Component\Core\Model\AddressInterface $billingAddress )
$billingAddress Sylius\Component\Core\Model\AddressInterface
    public function specifyBillingAddress(AddressInterface $billingAddress);

Usage Example

Ejemplo n.º 1
0
 /**
  * @When /^I specify the billing (address as "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)" for "([^"]+)")$/
  * @When /^I specify the billing (address for "([^"]+)" from "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)")$/
  * @When /^I (do not specify any billing address) information$/
  */
 public function iSpecifyTheBillingAddressAs(AddressInterface $address)
 {
     $this->iChooseTheDifferentBillingAddress();
     $key = sprintf('billing_address_%s_%s', strtolower($address->getFirstName()), strtolower($address->getLastName()));
     $this->sharedStorage->set($key, $address);
     $this->addressPage->specifyBillingAddress($address);
 }