Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertSaveCreditCardOptionNotPresent.php
Go to the documentation of this file.
1 <?php
7 
8 use Magento\Checkout\Test\Page\CheckoutOnepage;
9 use Magento\Mtf\Constraint\AbstractConstraint;
10 
14 class AssertSaveCreditCardOptionNotPresent extends AbstractConstraint
15 {
23  public function processAssert(CheckoutOnepage $checkoutOnepage, $payment)
24  {
25  \PHPUnit\Framework\Assert::assertFalse(
26  $checkoutOnepage->getVaultPaymentBlock()->isVaultVisible($payment),
27  'Save for later use checkbox is present.'
28  );
29  }
30 
36  public function toString()
37  {
38  return 'Save for later use checkbox is not present in credit card form.';
39  }
40 }
$payment
Definition: order.php:17