/** * @Then my order's payment method should be :paymentMethod */ public function myOrderSPaymentMethodShouldBe(PaymentMethodInterface $paymentMethod) { Assert::true($this->summaryPage->hasPaymentMethod($paymentMethod), sprintf('I should see %s payment method, but i do not.', $paymentMethod->getName())); }