/**
  * Order total report view.
  *
  * @param Customer $customer
  * @param string $orders
  * @param array $report
  * @param FixtureFactory $fixtureFactory
  * @return array
  */
 public function test(Customer $customer, $orders, array $report, FixtureFactory $fixtureFactory)
 {
     // Precondition
     $customer->persist();
     $orders = explode(',', $orders);
     foreach ($orders as $order) {
         $order = $fixtureFactory->createByCode('orderInjectable', ['dataSet' => $order, 'data' => ['customer_id' => ['customer' => $customer]]]);
         $order->persist();
     }
     // Steps
     $this->customerTotalsReport->open();
     $this->customerTotalsReport->getFilterBlock()->viewsReport($report);
     $this->customerTotalsReport->getFilterBlock()->refreshFilter();
     return ['customer' => $customer];
 }
 /**
  * Assert OrderTotalReport grid for all params.
  *
  * @param CustomerTotalsReport $customerTotalsReport
  * @param Customer $customer
  * @param array $columns
  * @param array $report
  * @return void
  */
 public function processAssert(CustomerTotalsReport $customerTotalsReport, Customer $customer, array $columns, array $report)
 {
     $filter = $this->prepareFilter($customer, $columns, $report);
     \PHPUnit_Framework_Assert::assertTrue($customerTotalsReport->getGridBlock()->isRowVisible($filter, false), 'Order does not present in report grid.');
 }