Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Acl
Test
Unit
AclResource
Config
_files
invalidMergedAclXmlArray.php
Go to the documentation of this file.
1
<?php
6
return
[
7
'disabled_attribute_empty_value'
=> [
8
'<?xml version="1.0"?><config><acl><resources><resource id="Test_Value::show_toolbar" '
.
9
'disabled="" title="test"/></resources></acl></config>'
,
10
[
11
"Element 'resource', attribute 'disabled': '' is not a valid value of the atomic"
.
12
" type 'xs:boolean'.\nLine: 1\n"
],
13
],
14
'disabled_attribute_wrong_type_value'
=> [
15
'<?xml version="1.0"?><config><acl><resources><resource id="Test_Value::show_toolbar" '
.
16
'disabled="notBool" title="test"/></resources></acl></config>'
,
17
[
18
"Element 'resource', attribute 'disabled': 'notBool' is not a valid value of the atomic type "
.
19
"'xs:boolean'.\nLine: 1\n"
20
],
21
],
22
'double_acl'
=> [
23
'<?xml version="1.0"?><config><acl><resources></resources></acl><acl/></config>'
,
24
[
"Element 'acl': This element is not expected.\nLine: 1\n"
],
25
],
26
'double_resource'
=> [
27
'<?xml version="1.0"?><config><acl><resources></resources><resources></resources></acl></config>'
,
28
[
"Element 'resources': This element is not expected.\nLine: 1\n"
],
29
],
30
'less_minLength_title_attribute'
=> [
31
'<?xml version="1.0"?><config><acl><resources><resource id="Test_Value::show_toolbar" '
.
32
'title="Sh"/></resources></acl></config>'
,
33
[
34
"Element 'resource', attribute 'title': [facet 'minLength'] The value 'Sh' has a length of '2'; "
.
35
"this underruns the allowed minimum length of '3'.\nLine: 1\n"
,
36
"Element 'resource', attribute 'title': 'Sh' is not a valid value of the atomic type"
.
37
" 'typeTitle'.\nLine: 1\n"
38
],
39
],
40
'more_maxLength_title_attribute'
=> [
41
'<?xml version="1.0"?><config><acl><resources><resource id="Test_Value::show_toolbar"'
.
42
' title="Lorem ipsum dolor sit amet, consectetur adipisicing"/></resources></acl></config>'
,
43
[
44
"Element 'resource', attribute 'title': [facet 'maxLength'] The value 'Lorem ipsum dolor sit amet, "
.
45
"consectetur adipisicing' has a length of '51'; this exceeds the allowed maximum"
.
46
" length of '50'.\nLine: 1\n"
,
47
"Element 'resource', attribute 'title': 'Lorem ipsum dolor sit amet, consectetur adipisicing' is not "
.
48
"a valid value of the atomic type 'typeTitle'.\nLine: 1\n"
49
],
50
],
51
'notvalid_id_attribute_value_regexp1'
=> [
52
'<?xml version="1.0"?><config><acl><resources><resource id="test_Value::show_toolbar" title="test"/>'
.
53
'</resources></acl></config>'
,
54
[
55
"Element 'resource', attribute 'id': [facet 'pattern'] The value 'test_Value::show_toolbar' is "
.
56
"not accepted by the pattern"
.
57
" '([A-Z]+[a-zA-Z0-9]{1,}){1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.\nLine: 1\n"
,
58
"Element 'resource', attribute 'id': 'test_Value::show_toolbar' is not a valid value of the atomic type "
.
59
"'typeId'.\nLine: 1\n"
,
60
"Element 'resource', attribute 'id': Warning: No precomputed value available, "
.
61
"the value was either invalid or "
.
62
"something strange happend.\nLine: 1\n"
63
],
64
],
65
'notvalid_id_attribute_value_regexp2'
=> [
66
'<?xml version="1.0"?><config><acl><resources><resource id="Test_value::show_toolbar" title="test"/>'
.
67
'</resources></acl></config>'
,
68
[
69
"Element 'resource', attribute 'id': [facet 'pattern'] The value 'Test_value::show_toolbar' is not "
.
70
"accepted by the pattern '([A-Z]+[a-zA-Z0-9]{1,}){1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.\nLine: 1\n"
,
71
"Element 'resource', attribute 'id': 'Test_value::show_toolbar' is not a valid value of the atomic type "
.
72
"'typeId'.\nLine: 1\n"
,
73
"Element 'resource', attribute 'id': Warning: No precomputed value available, "
.
74
"the value was either invalid or something strange happend.\nLine: 1\n"
75
],
76
],
77
'notvalid_id_attribute_value_regexp3'
=> [
78
'<?xml version="1.0"?><config><acl><resources><resource id="M@#$%^*_Value::show_toolbar" title="test"/>'
.
79
'</resources></acl></config>'
,
80
[
81
"Element 'resource', attribute 'id': [facet 'pattern'] The value 'M@#$%^*_Value::show_toolbar' is not "
.
82
"accepted by the pattern '([A-Z]+[a-zA-Z0-9]{1,}){1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.\nLine: 1\n"
,
83
"Element 'resource', attribute 'id': 'M@#$%^*_Value::show_toolbar' "
.
84
"is not a valid value of the atomic type 'typeId'.\nLine: 1\n"
,
85
"Element 'resource', attribute 'id': Warning: No precomputed value available, "
.
86
"the value was either invalid or something strange happend.\nLine: 1\n"
87
],
88
],
89
'notvalid_id_attribute_value_regexp4'
=> [
90
'<?xml version="1.0"?><config><acl><resources><resource id="_Value::show_toolbar" title="test"/>'
.
91
'</resources></acl></config>'
,
92
[
93
"Element 'resource', attribute 'id': [facet 'pattern'] The value '_Value::show_toolbar' is not "
.
94
"accepted by the pattern '([A-Z]+[a-zA-Z0-9]{1,}){1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.\nLine: 1\n"
,
95
"Element 'resource', attribute 'id': '_Value::show_toolbar' "
.
96
"is not a valid value of the atomic type 'typeId'.\nLine: 1\n"
,
97
"Element 'resource', attribute 'id': "
.
98
"Warning: No precomputed value available, the value was either invalid "
.
99
"or something strange happend.\nLine: 1\n"
100
],
101
],
102
'notvalid_id_attribute_value_regexp5'
=> [
103
'<?xml version="1.0"?><config><acl><resources><resource id="Value_::show_toolbar" title="test"/></resources>'
.
104
'</acl></config>'
,
105
[
106
"Element 'resource', attribute 'id': [facet 'pattern'] The value 'Value_::show_toolbar' is not "
.
107
"accepted by the pattern '([A-Z]+[a-zA-Z0-9]{1,}){1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.\nLine: 1\n"
,
108
"Element 'resource', attribute 'id': 'Value_::show_toolbar' "
.
109
"is not a valid value of the atomic type 'typeId'.\nLine: 1\n"
,
110
"Element 'resource', attribute 'id': "
.
111
"Warning: No precomputed value available, the value was either invalid "
.
112
"or something strange happend.\nLine: 1\n"
113
],
114
],
115
'notvalid_id_attribute_value_regexp6'
=> [
116
'<?xml version="1.0"?><config><acl><resources><resource id="Test_value:show_toolbar" title="test"/>'
.
117
'</resources></acl></config>'
,
118
[
119
"Element 'resource', attribute 'id': [facet 'pattern'] The value 'Test_value:show_toolbar' is not "
.
120
"accepted by the pattern '([A-Z]+[a-zA-Z0-9]{1,}){1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.\nLine: 1\n"
,
121
"Element 'resource', attribute 'id': 'Test_value:show_toolbar' is not a valid value of the atomic "
.
122
"type 'typeId'.\nLine: 1\n"
,
123
"Element 'resource', attribute 'id': "
.
124
"Warning: No precomputed value available, the value was either invalid "
.
125
"or something strange happend.\nLine: 1\n"
126
],
127
],
128
'notvalid_id_attribute_value_regexp7'
=> [
129
'<?xml version="1.0"?><config><acl><resources><resource id="Test_Value::" title="test"/></resources>'
.
130
'</acl></config>'
,
131
[
132
"Element 'resource', attribute 'id': [facet 'pattern'] The value 'Test_Value::' is not accepted by "
.
133
"the pattern '([A-Z]+[a-zA-Z0-9]{1,}){1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.\nLine: 1\n"
,
134
"Element 'resource', attribute 'id': 'Test_Value::' is not a valid value of the atomic type"
.
135
" 'typeId'.\nLine: 1\n"
,
136
"Element 'resource', attribute 'id': "
.
137
"Warning: No precomputed value available, the value was either invalid "
.
138
"or something strange happend.\nLine: 1\n"
139
],
140
],
141
'sortOrder_attribute_empty_value'
=> [
142
'<?xml version="1.0"?><config><acl><resources><resource id="Test_Value::show_toolbar" '
.
143
'title="Lorem ipsum" sortOrder="stringValue"/></resources></acl></config>'
,
144
[
145
"Element 'resource', attribute 'sortOrder': 'stringValue' is not a valid value of the atomic "
.
146
"type 'xs:int'.\nLine: 1\n"
147
],
148
],
149
'sortOrder_attribute_wrong_type_value'
=> [
150
'<?xml version="1.0"?><config><acl><resources><resource id="Test_Value::show_toolbar" '
.
151
'title="Lorem ipsum" sortOrder=""/></resources></acl></config>'
,
152
[
"Element 'resource', attribute 'sortOrder': '' is not a valid value of the atomic type 'xs:int'.\nLine: 1\n"
],
153
],
154
'with_not_allowed_attribute'
=> [
155
'<?xml version="1.0"?><config><acl><resources><resource id="Test_Value::show_toolbar" title="test" '
.
156
'someatrrname="some value"/></resources></acl></config>'
,
157
[
"Element 'resource', attribute 'someatrrname': The attribute 'someatrrname' is not allowed.\nLine: 1\n"
],
158
],
159
'with_two_same_id'
=> [
160
'<?xml version="1.0"?><config><acl><resources><resource id="Test_Value::show_toolbar" '
.
161
'title="Lorem ipsum"/><resource id="Test_Value::show_toolbar" title="Lorem ipsum"/>'
.
162
'</resources></acl></config>'
,
163
[
164
"Element 'resource': Duplicate key-sequence ['Test_Value::show_toolbar'] in unique identity-constraint "
.
165
"'uniqueResourceId'.\nLine: 1\n"
166
],
167
],
168
'without_acl'
=> [
169
'<?xml version="1.0"?><config/>'
,
170
[
"Element 'config': Missing child element(s). Expected is ( acl ).\nLine: 1\n"
],
171
],
172
'without_required_id_attribute'
=> [
173
'<?xml version="1.0"?><config><acl><resources><resource title="Notifications"/></resources></acl></config>'
,
174
[
"Element 'resource': The attribute 'id' is required but missing.\nLine: 1\n"
],
175
],
176
'without_resource'
=> [
177
'<?xml version="1.0"?><config><acl/></config>'
,
178
[
"Element 'acl': Missing child element(s). Expected is ( resources ).\nLine: 1\n"
],
179
],
180
'without_title'
=> [
181
'<?xml version="1.0"?><config><acl><resources><resource id="Test_Value::show_toolbar" />'
.
182
'</resources></acl></config>'
,
183
[
"Element 'resource': The attribute 'title' is required but missing.\nLine: 1\n"
],
184
],
185
];