Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertApplicationVersion.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Backend\Test\Page\Adminhtml\Dashboard;
10 use Magento\Mtf\Constraint\AbstractConstraint;
11 use Magento\Mtf\Fixture\FixtureInterface;
12 
16 class AssertApplicationVersion extends AbstractConstraint
17 {
25  public function processAssert(Dashboard $dashboard, $version)
26  {
27  \PHPUnit\Framework\Assert::assertContains(
28  $version,
29  $dashboard->getApplicationVersion()->getVersion(),
30  'Application version is incorrect.'
31  );
32  }
33 
39  public function toString()
40  {
41  return "Application new version is correct.";
42  }
43 }