Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertNewAccountsReportTotalResult.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Reports\Test\Page\Adminhtml\CustomerAccounts;
10 use Magento\Mtf\Constraint\AbstractConstraint;
11 
16 class AssertNewAccountsReportTotalResult extends AbstractConstraint
17 {
25  public function processAssert(CustomerAccounts $customerAccounts, $total)
26  {
27  $totalForm = $customerAccounts->getGridBlock()->getTotalResults();
28  \PHPUnit\Framework\Assert::assertEquals($total, $totalForm);
29  }
30 
36  public function toString()
37  {
38  return 'New account total result is equals to data from dataset.';
39  }
40 }