Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertPaymentMethodPersistence.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Checkout\Test\Page\CheckoutOnepage;
10 use Magento\Mtf\Constraint\AbstractConstraint;
11 
15 class AssertPaymentMethodPersistence extends AbstractConstraint
16 {
24  public function processAssert(CheckoutOnepage $checkoutOnepage, array $payment)
25  {
26  \PHPUnit\Framework\Assert::assertFalse(
27  $checkoutOnepage->getPaymentBlock()->isVisiblePaymentMethod($payment),
28  'Payment method' . $payment['method']. ' is present on Checkout Payment Page.'
29  );
30  }
31 
37  public function toString()
38  {
39  return 'Payment method is absent on Checkout Payment Page';
40  }
41 }
$payment
Definition: order.php:17