Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertPagersNotPresentInShoppingCart.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Constraint\AbstractConstraint;
10 use Magento\Checkout\Test\Page\CheckoutCart;
11 
15 class AssertPagersNotPresentInShoppingCart extends AbstractConstraint
16 {
23  public function processAssert(CheckoutCart $checkoutCart)
24  {
25  $checkoutCart->open();
26  \PHPUnit\Framework\Assert::assertFalse(
27  $checkoutCart->getTopPagerBlock()->getPagesBlock()->isVisible(),
28  'The top pager of Items Grid is visible.'
29  );
30  \PHPUnit\Framework\Assert::assertFalse(
31  $checkoutCart->getBottomPagerBlock()->getPagesBlock()->isVisible(),
32  'The bottom pager of Items Grid is visible.'
33  );
34  }
35 
39  public function toString()
40  {
41  return 'Pager is absent on the shopping cart page.';
42  }
43 }