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

コード例 #1
0
ファイル: CheckoutContext.php プロジェクト: starspire/Sylius
 /**
  * @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));
 }