Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertCreditCardNotPresentOnCheckout.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 
15 class AssertCreditCardNotPresentOnCheckout extends AbstractConstraint
16 {
23  public function processAssert(
24  CheckoutOnepage $checkoutOnepage,
25  $deletedCreditCard
26  ) {
27  \PHPUnit\Framework\Assert::assertFalse(
28  $checkoutOnepage->getVaultPaymentBlock()->isSavedCreditCardPresent($deletedCreditCard),
29  'Credit card is present on checkout.'
30  );
31  }
32 
38  public function toString()
39  {
40  return 'Credit card is not present on checkout.';
41  }
42 }