Sylius\Behat\Page\Shop\Checkout\SelectPaymentPageInterface::hasPaymentMethod PHP Method

hasPaymentMethod() public method

public hasPaymentMethod ( string $paymentMethodName ) : boolean
$paymentMethodName string
return boolean
    public function hasPaymentMethod($paymentMethodName);

Usage Example

Exemplo n.º 1
0
 /**
  * @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));
 }