Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
LoginAfterJSMinificationTest.php
Go to the documentation of this file.
1 <?php
7 
8 use Magento\Mtf\TestCase\Injectable;
9 use Magento\Backend\Test\Page\Adminhtml\Dashboard;
11 use Magento\Mtf\TestStep\TestStepFactory;
12 
18 class LoginAfterJSMinificationTest extends Injectable
19 {
20 
25  private $adminDashboardPage;
26 
32  private $stepFactory;
33 
39  private $configData;
40 
47  public function __inject(
48  Dashboard $adminDashboardPage,
49  TestStepFactory $stepFactory
50  ) {
51  $this->adminDashboardPage = $adminDashboardPage;
52  $this->stepFactory = $stepFactory;
53  }
54 
61  public function test(
62  DeployMode $cli,
63  $configData = null
64  ) {
65  $this->configData = $configData;
66 
67  //Pre-conditions
69  $this->objectManager->create(
70  \Magento\Config\Test\TestStep\SetupConfigurationStep::class,
71  ['configData' => $this->configData]
72  )->run();
73 
74  // Steps
76  $this->adminDashboardPage->open();
77  }
78 }
__inject(Dashboard $adminDashboardPage, TestStepFactory $stepFactory)