File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
dev/tests/functional/tests/app/Magento/Security/Test/TestCase Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
namespace Magento \Security \Test \TestCase ;
7
+
7
8
use Magento \User \Test \Page \Adminhtml \UserRoleEditRole ;
8
9
use Magento \User \Test \Page \Adminhtml \UserRoleIndex ;
9
10
use Magento \Mtf \TestCase \Injectable ;
10
11
use Magento \User \Test \Fixture \User ;
11
12
use Magento \User \Test \Fixture \Role ;
12
13
use Magento \Backend \Test \Page \AdminAuthLogin ;
14
+
13
15
/**
14
16
* Preconditions:
15
17
* 1. Create new admin user and assign it to new role.
@@ -34,30 +36,35 @@ class LockAdminUserWhenEditingRoleTest extends Injectable
34
36
const MVP = 'yes ' ;
35
37
const SEVERITY = 'S2 ' ;
36
38
/* end tags */
39
+
37
40
/**
38
41
* UserRoleIndex page.
39
42
*
40
43
* @var UserRoleIndex
41
44
*/
42
45
protected $ userRoleIndex ;
46
+
43
47
/**
44
48
* UserRoleEditRole page.
45
49
*
46
50
* @var UserRoleEditRole
47
51
*/
48
52
protected $ userRoleEditRole ;
53
+
49
54
/**
50
55
* Configuration setting.
51
56
*
52
57
* @var string
53
58
*/
54
59
protected $ configData ;
60
+
55
61
/**
56
62
* Admin login Page.
57
63
*
58
64
* @var AdminAuthLogin
59
65
*/
60
66
protected $ adminAuthLogin ;
67
+
61
68
/**
62
69
* Setup data for test.
63
70
*
@@ -75,6 +82,7 @@ public function __inject(
75
82
$ this ->userRoleEditRole = $ userRoleEditRole ;
76
83
$ this ->adminAuthLogin = $ adminAuthLogin ;
77
84
}
85
+
78
86
/**
79
87
* Runs Lock admin user when editing existing role test.
80
88
*
@@ -116,6 +124,7 @@ public function test(
116
124
$ this ->adminAuthLogin ->getLoginBlock ()->fill ($ customAdmin );
117
125
$ this ->adminAuthLogin ->getLoginBlock ()->submit ();
118
126
}
127
+
119
128
/**
120
129
* Clean data after running test.
121
130
*
You can’t perform that action at this time.
0 commit comments