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
App
Test
Unit
Config
_files
invalidRoutesXmlArray.php
Go to the documentation of this file.
1
<?php
6
return
[
7
'without_router_handle'
=> [
8
'<?xml version="1.0"?><config></config>'
,
9
[
"Element 'config': Missing child element(s). Expected is ( router ).\nLine: 1\n"
],
10
],
11
'router_without_required_id_attribute'
=> [
12
'<?xml version="1.0"?><config><router><route id="first"> <module name="Some_ModuleName" />'
.
13
'</route></router></config>'
,
14
[
"Element 'router': The attribute 'id' is required but missing.\nLine: 1\n"
],
15
],
16
'route_with_same_id_attribute'
=> [
17
'<?xml version="1.0"?><config><router id="some"><route id="first"><module name="Some_ModuleName" />'
.
18
'</route><route id="first" frontName="test_test" ><module name="Some_ModuleName" />'
.
19
'</route></router></config>'
,
20
[
"Element 'route': Duplicate key-sequence ['first'] in unique identity-constraint 'uniqueRouteId'.\nLine: 1\n"
],
21
],
22
'router_without_required_route_handle'
=> [
23
'<?xml version="1.0"?><config><router id="first"></router></config>'
,
24
[
"Element 'router': Missing child element(s). Expected is ( route ).\nLine: 1\n"
],
25
],
26
'routers_with_same_id'
=> [
27
'<?xml version="1.0"?><config><router id="first"><route id="first_route"><module name="Some_ModuleName" />'
.
28
'</route></router><router id="first"><route id="test"><module name="Some_ModuleName" '
.
29
'before="asdasd" /></route></router></config>'
,
30
[
31
"Element 'router': Duplicate key-sequence ['first'] in unique identity-constraint"
.
32
" 'uniqueRouterId'.\nLine: 1\n"
],
33
],
34
'router_with_notallowed_attribute'
=> [
35
'<?xml version="1.0"?><config><router id="first" notallowed="text"><route id="first_route">'
.
36
'<module name="Some_ModuleName" /></route></router></config>'
,
37
[
"Element 'router', attribute 'notallowed': The attribute 'notallowed' is not allowed.\nLine: 1\n"
],
38
],
39
'route_without_required_module_handle'
=> [
40
'<?xml version="1.0"?><config><router id="first" ><route id="first_route"></route></router></config>'
,
41
[
"Element 'route': Missing child element(s). Expected is ( module ).\nLine: 1\n"
],
42
],
43
'route_with_notallowed_attribute'
=> [
44
'<?xml version="1.0"?><config><router id="first"><route id="first_route" notallowe="text"><module'
.
45
' name="Some_ModuleName" /></route></router></config>'
,
46
[
"Element 'route', attribute 'notallowe': The attribute 'notallowe' is not allowed.\nLine: 1\n"
],
47
],
48
'same_route_frontname_attribute_value'
=> [
49
'<?xml version="1.0"?><config><router id="first"><route id="first_route" frontName="test_test">'
.
50
'<module name="Some_ModuleName" /></route><route id="second_route" frontName="test_test">'
.
51
'<module name="Some_ModuleName" /></route></router></config>'
,
52
[
53
"Element 'route': Duplicate key-sequence ['test_test'] in unique "
.
54
"identity-constraint 'uniqueRouteFrontName'.\nLine: 1\n"
55
],
56
],
57
'module_with_notallowed_attribute'
=> [
58
'<?xml version="1.0"?><config><router id="first"><route id="first_route"><module '
.
59
'name="Some_ModuleName" notallowed="text" /></route></router></config>'
,
60
[
"Element 'module', attribute 'notallowed': The attribute 'notallowed' is not allowed.\nLine: 1\n"
],
61
],
62
'router_id_empty_value'
=> [
63
'<?xml version="1.0"?><config><router id=""><route id="first_route"><module name="Some_ModuleName" />'
.
64
'</route></router></config>'
,
65
[
66
"Element 'router', attribute 'id': [facet 'pattern'] The value '' is not accepted by the "
.
67
"pattern '[A-Za-z0-9\-_]{3,}'.\nLine: 1\n"
,
68
"Element 'router', attribute 'id': '' is not a valid value of the atomic type 'routerIdType'.\nLine: 1\n"
,
69
"Element 'router', attribute 'id': "
.
70
"Warning: No precomputed value available, the value was either invalid or "
.
71
"something strange happend.\nLine: 1\n"
72
],
73
],
74
'router_id_value_regexp1'
=> [
75
'<?xml version="1.0"?><config><router id="as"><route id="first_route"><module name="Some_ModuleName" />'
.
76
'</route></router></config>'
,
77
[
78
"Element 'router', attribute 'id': [facet 'pattern'] The value 'as' is not accepted by the "
.
79
"pattern '[A-Za-z0-9\-_]{3,}'.\nLine: 1\n"
,
80
"Element 'router', attribute 'id': 'as' is not a valid value of the atomic type 'routerIdType'.\nLine: 1\n"
,
81
"Element 'router', attribute 'id': "
.
82
"Warning: No precomputed value available, the value was either invalid or "
.
83
"something strange happend.\nLine: 1\n"
84
],
85
],
86
'router_id_value_regexp2'
=> [
87
'<?xml version="1.0"?><config><router id="##%#"><route id="first_route"><module name="Some_ModuleName" />'
.
88
'</route></router></config>'
,
89
[
90
"Element 'router', attribute 'id': [facet 'pattern'] The value '##%#' is not accepted by the "
.
91
"pattern '[A-Za-z0-9\-_]{3,}'.\nLine: 1\n"
,
92
"Element 'router', attribute 'id': '##%#' is not a valid value of the atomic type"
.
93
" 'routerIdType'.\nLine: 1\n"
,
94
"Element 'router', attribute 'id': "
.
95
"Warning: No precomputed value available, the value was either invalid or "
.
96
"something strange happend.\nLine: 1\n"
97
],
98
],
99
'router_route_value_regexp1'
=> [
100
'<?xml version="1.0"?><config><router id="first"><route id="dc"><module name="Some_ModuleName" />'
.
101
'</route></router></config>'
,
102
[
103
"Element 'route', attribute 'id': [facet 'pattern'] The value 'dc' is not accepted by the "
.
104
"pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n"
,
105
"Element 'route', attribute 'id': 'dc' is not a valid value of the atomic type 'routeIdType'.\nLine: 1\n"
,
106
"Element 'route', attribute 'id': Warning: No precomputed value available, the value was either "
.
107
"invalid or something strange happend.\nLine: 1\n"
108
],
109
],
110
'router_route_empty_before_attribute_value'
=> [
111
'<?xml version="1.0"?><config><router id="first"><route id="test"><module name="Some_ModuleName" '
.
112
'before="" /></route></router></config>'
,
113
[
114
"Element 'module', attribute 'before': [facet 'pattern'] The value '' is not accepted by the "
.
115
"pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n"
,
116
"Element 'module', attribute 'before': '' is not a valid value of the atomic type"
.
117
" 'beforeAfterType'.\nLine: 1\n"
118
],
119
],
120
'router_route_before_attribute_value_regexp1'
=> [
121
'<?xml version="1.0"?><config><router id="first"><route id="test"><module '
.
122
'name="Some_ModuleName" before="!!!!" /></route></router></config>'
,
123
[
124
"Element 'module', attribute 'before': [facet 'pattern'] The value '!!!!' is not accepted by the "
.
125
"pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n"
,
126
"Element 'module', attribute 'before': '!!!!' is not a valid value of the atomic type"
.
127
" 'beforeAfterType'.\nLine: 1\n"
128
],
129
],
130
'router_route_before_attribute_value_regexp2'
=> [
131
'<?xml version="1.0"?><config><router id="first"><route id="test">'
.
132
'<module name="Some_ModuleName" before="ab" /></route></router></config>'
,
133
[
134
"Element 'module', attribute 'before': [facet 'pattern'] The value 'ab' is not accepted by "
.
135
"the pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n"
,
136
"Element 'module', attribute 'before': 'ab' is not a valid value of the atomic type"
.
137
" 'beforeAfterType'.\nLine: 1\n"
138
],
139
],
140
'route_module_without_required_name_atrribute'
=> [
141
'<?xml version="1.0"?><config><router id="first"><route id="test"><module /></route></router></config>'
,
142
[
"Element 'module': The attribute 'name' is required but missing.\nLine: 1\n"
],
143
],
144
'route_module_name_attribute_value_regexp1'
=> [
145
'<?xml version="1.0"?><config><router id="first"><route id="test"><module name="ss" />'
.
146
'</route></router></config>'
,
147
[
148
"Element 'module', attribute 'name': [facet 'pattern'] The value 'ss' is not accepted by the "
.
149
"pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n"
,
150
"Element 'module', attribute 'name': 'ss' is not a valid value of the atomic type"
.
151
" 'moduleNameType'.\nLine: 1\n"
,
152
"Element 'module', attribute 'name': Warning: No precomputed value available, the value was either "
.
153
"invalid or something strange happend.\nLine: 1\n"
154
],
155
],
156
'route_module_name_attribute_value_regexp2'
=> [
157
'<?xml version="1.0"?><config><router id="firsst"><route id="test"><module name="#$%^" />'
.
158
'</route></router></config>'
,
159
[
160
"Element 'module', attribute 'name': [facet 'pattern'] The value '#$%^' is not accepted by "
.
161
"the pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n"
,
162
"Element 'module', attribute 'name': '#$%^' is not a valid value of the atomic type"
.
163
" 'moduleNameType'.\nLine: 1\n"
,
164
"Element 'module', attribute 'name': Warning: No precomputed value available, the value was either "
.
165
"invalid or something strange happend.\nLine: 1\n"
166
],
167
],
168
'route_module_before_attribute_empty_value'
=> [
169
'<?xml version="1.0"?><config><router id="firsst"><route id="test">'
.
170
'<module name="Some_ModuleName" before="" /></route></router></config>'
,
171
[
172
"Element 'module', attribute 'before': [facet 'pattern'] The value '' is not accepted by "
.
173
"the pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n"
,
174
"Element 'module', attribute 'before': '' is not a valid value of the atomic type"
.
175
" 'beforeAfterType'.\nLine: 1\n"
176
],
177
],
178
'route_module_before_attribute_value_regexp1'
=> [
179
'<?xml version="1.0"?><config><router id="firsst"><route id="test">'
.
180
'<module name="Some_ModuleName" before="qq" /></route></router></config>'
,
181
[
182
"Element 'module', attribute 'before': [facet 'pattern'] The value 'qq' is not accepted by the "
.
183
"pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n"
,
184
"Element 'module', attribute 'before': 'qq' is not a valid value of the atomic type"
.
185
" 'beforeAfterType'.\nLine: 1\n"
186
],
187
],
188
'route_module_before_attribute_value_regexp2'
=> [
189
'<?xml version="1.0"?><config><router id="firsst"><route id="test">'
.
190
'<module name="Some_ModuleName" before="!!!!" /></route></router></config>'
,
191
[
192
"Element 'module', attribute 'before': [facet 'pattern'] The value '!!!!' is not accepted by the "
.
193
"pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n"
,
194
"Element 'module', attribute 'before': '!!!!' is not a valid value of the atomic type"
.
195
" 'beforeAfterType'.\nLine: 1\n"
196
],
197
],
198
'route_module_after_attribute_empty_value'
=> [
199
'<?xml version="1.0"?><config><router id="firsst"><route id="test"><module name="Some_ModuleName" after="" />'
.
200
'</route></router></config>'
,
201
[
202
"Element 'module', attribute 'after': [facet 'pattern'] The value '' is not accepted "
.
203
"by the pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n"
,
204
"Element 'module', attribute 'after': '' is not a valid value of the atomic type"
.
205
" 'beforeAfterType'.\nLine: 1\n"
206
],
207
],
208
'route_module_after_attribute_value_regexp1'
=> [
209
'<?xml version="1.0"?><config><router id="first">'
.
210
'<route id="test"><module name="Some_ModuleName" after="sd" />'
.
211
'</route></router></config>'
,
212
[
213
"Element 'module', attribute 'after': [facet 'pattern'] The value 'sd' is not accepted by"
.
214
" the pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n"
,
215
"Element 'module', attribute 'after': 'sd' is not a valid value of the atomic type"
.
216
" 'beforeAfterType'.\nLine: 1\n"
217
],
218
],
219
'route_module_after_attribute_value_regexp2'
=> [
220
'<?xml version="1.0"?><config><router id="first"><route id="test">'
.
221
'<module name="Some_ModuleName" after="!!!!" /></route></router></config>'
,
222
[
223
"Element 'module', attribute 'after': [facet 'pattern'] The value '!!!!' is not accepted by the "
.
224
"pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n"
,
225
"Element 'module', attribute 'after': '!!!!' is not a valid value of the atomic type"
.
226
" 'beforeAfterType'.\nLine: 1\n"
227
],
228
]
229
];