Skip to content

Commit 778255b

Browse files
committed
MAGETWO-57798: Automate-MAGETWO-49037-Password protection for modifying user Role
- Fixing code styles.
1 parent e789358 commit 778255b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

dev/tests/functional/tests/app/Magento/Security/Test/TestCase/LockAdminUserWhenEditingRoleTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
* See COPYING.txt for license details.
55
*/
66
namespace Magento\Security\Test\TestCase;
7+
78
use Magento\User\Test\Page\Adminhtml\UserRoleEditRole;
89
use Magento\User\Test\Page\Adminhtml\UserRoleIndex;
910
use Magento\Mtf\TestCase\Injectable;
1011
use Magento\User\Test\Fixture\User;
1112
use Magento\User\Test\Fixture\Role;
1213
use Magento\Backend\Test\Page\AdminAuthLogin;
14+
1315
/**
1416
* Preconditions:
1517
* 1. Create new admin user and assign it to new role.
@@ -34,30 +36,35 @@ class LockAdminUserWhenEditingRoleTest extends Injectable
3436
const MVP = 'yes';
3537
const SEVERITY = 'S2';
3638
/* end tags */
39+
3740
/**
3841
* UserRoleIndex page.
3942
*
4043
* @var UserRoleIndex
4144
*/
4245
protected $userRoleIndex;
46+
4347
/**
4448
* UserRoleEditRole page.
4549
*
4650
* @var UserRoleEditRole
4751
*/
4852
protected $userRoleEditRole;
53+
4954
/**
5055
* Configuration setting.
5156
*
5257
* @var string
5358
*/
5459
protected $configData;
60+
5561
/**
5662
* Admin login Page.
5763
*
5864
* @var AdminAuthLogin
5965
*/
6066
protected $adminAuthLogin;
67+
6168
/**
6269
* Setup data for test.
6370
*
@@ -75,6 +82,7 @@ public function __inject(
7582
$this->userRoleEditRole = $userRoleEditRole;
7683
$this->adminAuthLogin = $adminAuthLogin;
7784
}
85+
7886
/**
7987
* Runs Lock admin user when editing existing role test.
8088
*
@@ -116,6 +124,7 @@ public function test(
116124
$this->adminAuthLogin->getLoginBlock()->fill($customAdmin);
117125
$this->adminAuthLogin->getLoginBlock()->submit();
118126
}
127+
119128
/**
120129
* Clean data after running test.
121130
*

0 commit comments

Comments
 (0)