Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertKeyCreated.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Constraint\AbstractConstraint;
10 use Magento\Install\Test\Page\Install;
11 use Magento\Install\Test\Fixture\Install as InstallConfig;
12 
16 class AssertKeyCreated extends AbstractConstraint
17 {
25  public function processAssert(Install $installPage, InstallConfig $installConfig)
26  {
27  \PHPUnit\Framework\Assert::assertEquals(
28  $installConfig->getKeyValue(),
29  $installPage->getInstallBlock()->getAdminInfo()['encryption_key'],
30  'Selected encryption key on install page not equals to data from fixture.'
31  );
32  }
33 
39  public function toString()
40  {
41  return 'Selected encryption key displays on success full install page.';
42  }
43 }
processAssert(Install $installPage, InstallConfig $installConfig)