Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
GlobalSearchEntityTest.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Backend\Test\Page\Adminhtml\Dashboard;
11 use Magento\Mtf\TestCase\Injectable;
12 
28 class GlobalSearchEntityTest extends Injectable
29 {
30  /* tags */
31  const MVP = 'no';
32  /* end tags */
33 
39  protected $dashboard;
40 
47  public function __inject(Dashboard $dashboard)
48  {
49  $this->dashboard = $dashboard;
50  }
51 
58  public function test(GlobalSearch $search)
59  {
60  // Steps:
61  $this->dashboard->open();
62  $this->dashboard->getAdminPanelHeader()->search($search->getQuery());
63  }
64 }