Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
RevokeAllAccessTokensForAdminWithoutTokensTest.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\User\Test\Page\Adminhtml\UserEdit;
11 use Magento\User\Test\Page\Adminhtml\UserIndex;
12 use Magento\Mtf\TestCase\Injectable;
13 
34 {
35  /* tags */
36  const MVP = 'no';
37  /* end tags */
38 
44  protected $userIndex;
45 
51  protected $userEdit;
52 
60  public function __inject(
61  UserIndex $userIndex,
62  UserEdit $userEdit
63  ) {
64  $this->userIndex = $userIndex;
65  $this->userEdit = $userEdit;
66  }
67 
74  public function test(User $user)
75  {
76  // Preconditions:
77  $user->persist();
78  // Steps:
79  $this->userIndex->open();
80  $this->userIndex->getUserGrid()->searchAndOpen(['username' => $user->getUsername()]);
81  $this->userEdit->getPageActions()->forceSignIn();
82  }
83 }
$user
Definition: dummy_user.php:13