Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AccessAdminWithStoreCodeInUrlTest.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\TestCase\Injectable;
10 use Magento\Mtf\TestStep\TestStepFactory;
11 
20 class AccessAdminWithStoreCodeInUrlTest extends Injectable
21 {
22  /* tags */
23  const MVP = 'no';
24  /* end tags */
25 
31  private $configData;
32 
38  private $stepFactory;
39 
46  public function __inject(TestStepFactory $stepFactory)
47  {
48  $this->stepFactory = $stepFactory;
49  }
50 
57  public function test($configData)
58  {
59  $this->configData = $configData;
60  $this->stepFactory->create(
61  \Magento\Config\Test\TestStep\SetupConfigurationStep::class,
62  ['configData' => $this->configData]
63  )->run();
64  $this->stepFactory->create(
65  \Magento\User\Test\TestStep\LogoutUserOnBackendStep::class,
66  ['configData' => $this->configData]
67  )->run();
68  }
69 
75  public function tearDown()
76  {
77  $this->stepFactory->create(
78  \Magento\Config\Test\TestStep\SetupConfigurationStep::class,
79  ['configData' => $this->configData, 'rollback' => true]
80  )->run();
81  }
82 }