Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CustomAclPermissionTest.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Mtf\TestCase\Injectable;
11 use Magento\Mtf\TestStep\TestStepFactory;
12 
23 class CustomAclPermissionTest extends Injectable
24 {
25  /* tags */
26  const MVP = 'no';
27  /* end tags */
28 
34  protected $testStepFactory;
35 
42  public function __inject(
43  TestStepFactory $testStepFactory
44  ) {
45  $this->testStepFactory = $testStepFactory;
46  }
47 
54  public function test(User $user)
55  {
56  $user->persist();
57  $this->testStepFactory->create(
58  \Magento\User\Test\TestStep\LoginUserOnBackendStep::class,
59  ['user' => $user]
60  )->run();
61  }
62 }
$user
Definition: dummy_user.php:13