Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertPagersPresentInShoppingCart.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 AssertPagersPresentInShoppingCart extends AbstractConstraint
16 {
22  public function processAssert(CheckoutCart $checkoutCart)
23  {
24  $checkoutCart->open();
25  \PHPUnit\Framework\Assert::assertTrue(
26  $checkoutCart->getTopPagerBlock()->getPagesBlock()->isVisible(),
27  'The top pager of Items Grid is not visible.'
28  );
29  \PHPUnit\Framework\Assert::assertTrue(
30  $checkoutCart->getBottomPagerBlock()->getPagesBlock()->isVisible(),
31  'The bottom pager of Items Grid is not visible.'
32  );
33  }
34 
38  public function toString()
39  {
40  return 'Pager present on the shopping cart page.';
41  }
42 }