Sylius\Behat\Page\Shop\Checkout\CompletePageInterface::hasShippingMethod PHP 메소드

hasShippingMethod() 공개 메소드

public hasShippingMethod ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod ) : boolean
$shippingMethod Sylius\Component\Core\Model\ShippingMethodInterface
리턴 boolean
    public function hasShippingMethod(ShippingMethodInterface $shippingMethod);

Usage Example

예제 #1
0
 /**
  * @Then my order's shipping method should be :shippingMethod
  */
 public function myOrderSShippingMethodShouldBe(ShippingMethodInterface $shippingMethod)
 {
     Assert::true($this->completePage->hasShippingMethod($shippingMethod), sprintf('I should see %s shipping method, but I do not.', $shippingMethod->getName()));
 }