Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
BestsellerProductsReportEntityTest.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Reports\Test\Page\Adminhtml\Bestsellers;
11 use Magento\Mtf\TestCase\Injectable;
12 
30 class BestsellerProductsReportEntityTest extends Injectable
31 {
32  /* tags */
33  const MVP = 'no';
34  /* end tags */
35 
41  protected $bestsellers;
42 
49  public function __inject(Bestsellers $bestsellers)
50  {
51  $this->bestsellers = $bestsellers;
52  }
53 
61  public function test(OrderInjectable $order, array $bestsellerReport)
62  {
63  // Preconditions
64  $order->persist();
65  $this->bestsellers->open();
66  $this->bestsellers->getMessagesBlock()->clickLinkInMessage('notice', 'here');
67 
68  // Steps
69  $this->bestsellers->getFilterBlock()->viewsReport($bestsellerReport);
70  $this->bestsellers->getActionsBlock()->showReport();
71  }
72 }
$order
Definition: order.php:55