/**
  * Asserts Customer Product Review not available in grid
  *
  * @param ReviewIndex $reviewIndex
  * @param Review $review
  * @param AssertProductReviewNotInGrid $assertProductReviewNotInGrid
  * @param CustomerReportReview $customerReportReview
  * @param Customer $customer
  * @param CatalogProductSimple $product
  * @param string $gridStatus
  * @return void
  */
 public function processAssert(ReviewIndex $reviewIndex, Review $review, AssertProductReviewNotInGrid $assertProductReviewNotInGrid, CustomerReportReview $customerReportReview, Customer $customer, CatalogProductSimple $product, $gridStatus = '')
 {
     $filter = $assertProductReviewNotInGrid->prepareFilter($product, $review, $gridStatus);
     $customerReportReview->open();
     $customerReportReview->getGridBlock()->openReview($customer);
     $reviewIndex->getReviewGrid()->search($filter);
     unset($filter['visible_in']);
     \PHPUnit_Framework_Assert::assertFalse($reviewIndex->getReviewGrid()->isRowVisible($filter, false), 'Customer review is present in Review grid.');
 }
 /**
  * Assert product reviews qty column in Review Report by Customer grid
  *
  * @param CustomerReportReview $customerReportReview
  * @param Customer $customer
  * @param int $reviewsCount
  * @return void
  */
 public function processAssert(CustomerReportReview $customerReportReview, Customer $customer, $reviewsCount)
 {
     $customerName = $customer->getFirstname() . ' ' . $customer->getLastname();
     $customerReportReview->open();
     \PHPUnit_Framework_Assert::assertEquals($reviewsCount, $customerReportReview->getGridBlock()->getQtyReview($customerName), 'Wrong qty review in Customer Reviews Report grid.');
 }