/** * @Then I should be able to select :paymentMethodName payment method */ public function iShouldBeAbleToSelectPaymentMethod($paymentMethodName) { Assert::true($this->selectPaymentPage->hasPaymentMethod($paymentMethodName), sprintf('Payment method "%s" should be available, but it does not.', $paymentMethodName)); }