Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertCurrencySelected.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 
15 class AssertCurrencySelected extends AbstractConstraint
16 {
24  public function processAssert($currencySymbol, Dashboard $dashboardPage)
25  {
26  \PHPUnit\Framework\Assert::assertTrue(
27  strpos($dashboardPage->getMainBlock()->getRevenuePrice(), $currencySymbol) !== false,
28  'Selected currency symbol not displays on dashboard.'
29  );
30  }
31 
37  public function toString()
38  {
39  return 'Selected currency displays in admin.';
40  }
41 }
$currencySymbol
Definition: matrix.phtml:14
processAssert($currencySymbol, Dashboard $dashboardPage)