/**
  * New Accounts Report.
  *
  * @param Customer $customer
  * @param array $customersReport
  * @return void
  */
 public function test(Customer $customer, array $customersReport)
 {
     // Preconditions
     $this->customerIndexPage->open();
     $this->customerIndexPage->getCustomerGridBlock()->massaction([], 'Delete', true, 'Select All');
     $customer->persist();
     // Steps
     $this->customerAccounts->open();
     $this->customerAccounts->getGridBlock()->searchAccounts($customersReport);
 }
 /**
  * Assert that new account total result is equals to data from dataset
  *
  * @param CustomerAccounts $customerAccounts
  * @param string $total
  * @return void
  */
 public function processAssert(CustomerAccounts $customerAccounts, $total)
 {
     $totalForm = $customerAccounts->getGridBlock()->getTotalResults();
     \PHPUnit_Framework_Assert::assertEquals($total, $totalForm);
 }