File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed
dev/tests/integration/testsuite/Magento/Theme/Controller/Adminhtml/System/Design/Config Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change 14
14
*/
15
15
class SaveTest extends AbstractBackendController
16
16
{
17
+ /**
18
+ * @var FormKey
19
+ */
20
+ private $ formKey ;
21
+
17
22
/**
18
23
* @inheritdoc
19
24
*/
@@ -24,6 +29,15 @@ class SaveTest extends AbstractBackendController
24
29
*/
25
30
protected $ uri = 'backend/theme/design_config/save ' ;
26
31
32
+ protected function setUp ()
33
+ {
34
+ parent ::setUp ();
35
+
36
+ $ this ->formKey = $ this ->_objectManager ->get (
37
+ FormKey::class
38
+ );
39
+ }
40
+
27
41
/**
28
42
* Test design configuration save valid values.
29
43
*
@@ -89,7 +103,22 @@ private function getRequestParams()
89
103
'watermark_swatch_image_imageOpacity ' => '' ,
90
104
'watermark_swatch_image_position ' => 'stretch ' ,
91
105
'scope ' => 'default ' ,
92
- 'form_key ' => $ this ->_objectManager -> get (FormKey::class) ->getFormKey (),
106
+ 'form_key ' => $ this ->formKey ->getFormKey (),
93
107
];
94
108
}
109
+
110
+ public function testAclHasAccess ()
111
+ {
112
+ $ this ->getRequest ()->setMethod (
113
+ \Zend \Http \Request::METHOD_POST
114
+ );
115
+
116
+ $ this ->getRequest ()->setParams (
117
+ [
118
+ 'form_key ' => $ this ->formKey ->getFormKey ()
119
+ ]
120
+ );
121
+
122
+ parent ::testAclHasAccess ();
123
+ }
95
124
}
You can’t perform that action at this time.
0 commit comments