Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertCustomerOrderTotalReportResult.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Reports\Test\Page\Adminhtml\CustomerTotalsReport;
11 
16 {
26  public function processAssert(
27  CustomerTotalsReport $customerTotalsReport,
28  Customer $customer,
29  array $columns,
30  array $report
31  ) {
32  $filter = $this->prepareFilter($customer, $columns, $report);
33 
34  \PHPUnit\Framework\Assert::assertTrue(
35  $customerTotalsReport->getGridBlock()->isRowVisible($filter, false),
36  'Order does not present in report grid.'
37  );
38  }
39 
45  public function toString()
46  {
47  return 'Order total is present in reports grid.';
48  }
49 }
$customer
Definition: customers.php:11
$columns
Definition: default.phtml:15
processAssert(CustomerTotalsReport $customerTotalsReport, Customer $customer, array $columns, array $report)