hasShippingAddress() public method

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