/**
* Assert bestseller info in report: date, product name and qty.
*
* @param Bestsellers $bestsellers
* @param OrderInjectable $order
* @param string $date
* @return void
*/
public function processAssert(Bestsellers $bestsellers, OrderInjectable $order, $date)
{
/** @var CatalogProductSimple $product */
$product = $order->getEntityId()['products'][0];
$filter = ['date' => date($date), 'product' => $product->getName(), 'price' => $product->getPrice(), 'orders' => $product->getCheckoutData()['qty']];
\PHPUnit_Framework_Assert::assertTrue($bestsellers->getGridBlock()->isRowVisible($filter, false), 'Bestseller does not present in report grid.');
}