public function hasShippingMethod(ShippingMethodInterface $shippingMethod);
/** * @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())); }