Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertProductCompareItemsLinkIsAbsent.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Cms\Test\Page\CmsIndex;
10 use Magento\Mtf\Constraint\AbstractConstraint;
11 
15 class AssertProductCompareItemsLinkIsAbsent extends AbstractConstraint
16 {
17  /* tags */
18  const SEVERITY = 'low';
19  /* end tags */
20 
27  public function processAssert(CmsIndex $cmsIndex)
28  {
29  \PHPUnit\Framework\Assert::assertFalse(
30  $cmsIndex->getLinksBlock()->isLinkVisible("Compare Products"),
31  'The link "Compare Products..." is visible at the top of page.'
32  );
33  }
34 
40  public function toString()
41  {
42  return 'The link is NOT visible at the top of page.';
43  }
44 }