Sylius\Behat\Page\Shop\Checkout\CompletePageInterface::hasBillingAddress PHP Method

hasBillingAddress() public method

public hasBillingAddress ( Sylius\Component\Core\Model\AddressInterface $address ) : boolean
$address Sylius\Component\Core\Model\AddressInterface
return boolean
    public function hasBillingAddress(AddressInterface $address);

Usage Example

Example #1
0
 /**
  * @Then my order's billing address should be to :fullName
  */
 public function iShouldSeeThisBillingAddressAsBillingAddress($fullName)
 {
     $address = $this->sharedStorage->get('billing_address_' . StringInflector::nameToLowercaseCode($fullName));
     Assert::true($this->completePage->hasBillingAddress($address), 'Billing address is improper.');
 }