Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertBillingAddressAbsentInPayment.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 AssertBillingAddressAbsentInPayment extends AbstractConstraint
16 {
23  public function processAssert(CheckoutOnepage $checkoutOnepage)
24  {
25  \PHPUnit\Framework\Assert::assertFalse(
26  $checkoutOnepage->getPaymentBlock()
27  ->getSelectedPaymentMethodBlock()
28  ->getBillingBlock()
29  ->isVisible(),
30  'Billing address is present in payment method'
31  );
32  }
33 
39  public function toString()
40  {
41  return 'Billing address is absent in payment method';
42  }
43 }