Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertDevdocsLink.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Install\Test\Page\DevdocsInstall;
10 use Magento\Mtf\Constraint\AbstractConstraint;
11 
15 class AssertDevdocsLink extends AbstractConstraint
16 {
20  const DEVDOCS_TITLE_TEXT = 'Setup Wizard installation';
21 
28  public function processAssert(DevdocsInstall $devdocsInstallPage)
29  {
30  \PHPUnit\Framework\Assert::assertEquals(
31  self::DEVDOCS_TITLE_TEXT,
32  $devdocsInstallPage->getDevdocsBlock()->getDevdocsTitle(),
33  'Developer Documentation link is wrong.'
34  );
35  }
36 
42  public function toString()
43  {
44  return "Developer Documentation link is correct.";
45  }
46 }