hasBillingAddress() public method

public hasBillingAddress ( string $customerName, string $street, string $postcode, string $city, string $countryName ) : boolean
$customerName string
$street string
$postcode string
$city string
$countryName string
return boolean
Example #1
0
 /**
  * @Then it should be billed to :customerName, :street, :postcode, :city, :countryName
  * @Then /^(this order) bill should (?:|still )be shipped to "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)"$/
  */
 public function itShouldBeBilledTo(OrderInterface $order = null, $customerName, $street, $postcode, $city, $countryName)
 {
     if (null !== $order) {
         $this->iSeeTheOrder($order);
     }
     Assert::true($this->showPage->hasBillingAddress($customerName, $street, $postcode, $city, $countryName), sprintf('Cannot find shipping address "%s, %s %s, %s".', $street, $postcode, $city, $countryName));
 }
Example #2
0
 /**
  * @Then it should be billed to :customerName, :street, :postcode, :city, :countryName
  */
 public function itShouldBeBilledTo($customerName, $street, $postcode, $city, $countryName)
 {
     Assert::true($this->showPage->hasBillingAddress($customerName, $street, $postcode, $city, $countryName), sprintf('Cannot find shipping address "%s, %s %s, %s".', $street, $postcode, $city, $countryName));
 }