Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertWishlistIsEmpty.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Cms\Test\Page\CmsIndex;
10 use Magento\Wishlist\Test\Page\WishlistIndex;
11 use Magento\Mtf\Constraint\AbstractConstraint;
12 
17 class AssertWishlistIsEmpty extends AbstractConstraint
18 {
26  public function processAssert(CmsIndex $cmsIndex, WishlistIndex $wishlistIndex)
27  {
28  $cmsIndex->getCmsPageBlock()->waitPageInit();
29  $cmsIndex->getLinksBlock()->openLink("My Wish List");
30  \PHPUnit\Framework\Assert::assertTrue(
31  $wishlistIndex->getWishlistBlock()->isEmptyBlockVisible(),
32  'Wish List is not empty.'
33  );
34  }
35 
41  public function toString()
42  {
43  return 'Wish List is empty.';
44  }
45 }
processAssert(CmsIndex $cmsIndex, WishlistIndex $wishlistIndex)