Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
invalidMenuXmlArray.php
Go to the documentation of this file.
1 <?php
6 return [
7  'add_action_attribute_empty_value' => [
8  '<?xml version="1.0"?><config><menu><add action="" id="Test_Value::some_value"' .
9  ' title="Notifications" module="Test_Value"' .
10  ' resource="Test_Value::value"/></menu></config>',
11  [
12  "Element 'add', attribute 'action': [facet 'pattern'] The value '' is not accepted by the " .
13  "pattern '[a-zA-Z0-9/_]{3,}'.\nLine: 1\n",
14  "Element 'add', attribute 'action': '' is not a valid value of the atomic type 'typeAction'.\nLine: 1\n"
15  ],
16  ],
17  'add_action_attribute_less_minLenght_value' => [
18  '<?xml version="1.0"?><config><menu><add action="ad" id="Test_Value::some_value" ' .
19  'title="Notifications" module="Test_Value" ' .
20  'resource="Test_Value::value"/></menu></config>',
21  [
22  "Element 'add', attribute 'action': [facet 'pattern'] The value 'ad' is not accepted by the " .
23  "pattern '[a-zA-Z0-9/_]{3,}'.\nLine: 1\n",
24  "Element 'add', attribute 'action': 'ad' is not a valid value of the atomic type 'typeAction'.\nLine: 1\n"
25  ],
26  ],
27  'add_action_attribute_notallowed_symbols_value' => [
28  '<?xml version="1.0"?><config><menu><add action="adm$#@inhtml/notification"' .
29  ' id="Test_Value::some_value" title="Notifications"' .
30  ' module="Test_Value" resource="Test_Value::value"/>' .
31  '</menu></config>',
32  [
33  "Element 'add', attribute 'action': [facet 'pattern'] The value 'adm$#@inhtml/notification' is not " .
34  "accepted by the pattern '[a-zA-Z0-9/_]{3,}'.\nLine: 1\n",
35  "Element 'add', attribute 'action': 'adm$#@inhtml/notification' is not a valid value of the atomic " .
36  "type 'typeAction'.\nLine: 1\n"
37  ],
38  ],
39  'add_dependsOnConfig_attribute_empty_value' => [
40  '<?xml version="1.0"?><config><menu><add dependsOnConfig="" ' .
41  'id="Test_Value::some_value" title="Notifications" ' .
42  'module="Test_Value" resource="Test_Value::value"/>' .
43  '</menu></config>',
44  [
45  "Element 'add', attribute 'dependsOnConfig': [facet 'pattern'] The value '' is not accepted by the " .
46  "pattern '[A-Za-z0-9_/]{3,}'.\nLine: 1\n",
47  "Element 'add', attribute 'dependsOnConfig': '' " .
48  "is not a valid value of the atomic type 'typeDependsConfig'.\nLine: 1\n"
49  ],
50  ],
51  'add_dependsOnConfig_attribute_less_minLenght_value' => [
52  '<?xml version="1.0"?><config><menu><add dependsOnConfig="v" ' .
53  'id="Test_Value::some_value" title="Notifications" ' .
54  'module="Test_Value" resource="Test_Value::value"/>' .
55  '</menu></config>',
56  [
57  "Element 'add', attribute 'dependsOnConfig': [facet 'pattern'] The value 'v' is not accepted by the " .
58  "pattern '[A-Za-z0-9_/]{3,}'.\nLine: 1\n",
59  "Element 'add', attribute 'dependsOnConfig': 'v' is not a valid value of the atomic " .
60  "type 'typeDependsConfig'.\nLine: 1\n"
61  ],
62  ],
63  'add_dependsOnConfig_attribute_notallowed_symbols_value' => [
64  '<?xml version="1.0"?><config><menu><add dependsOnConfig="name#1" ' .
65  'id="Test_Value::some_value" title="Notifications" ' .
66  'module="Test_Value" resource="Test_Value::value"/>' .
67  '</menu></config>',
68  [
69  "Element 'add', attribute 'dependsOnConfig': [facet 'pattern'] The value 'name#1' is not accepted by " .
70  "the pattern '[A-Za-z0-9_/]{3,}'.\nLine: 1\n",
71  "Element 'add', attribute 'dependsOnConfig': 'name#1' is not a valid value of the atomic " .
72  "type 'typeDependsConfig'.\nLine: 1\n"
73  ],
74  ],
75  'add_dependsOnModule_attribute_empty_value' => [
76  '<?xml version="1.0"?><config><menu><add dependsOnModule="" ' .
77  'id="Test_Value::some_value" title="Notifications" ' .
78  'module="Test_Value" resource="Test_Value::value"/>' .
79  '</menu></config>',
80  [
81  "Element 'add', attribute 'dependsOnModule': [facet 'pattern'] The value '' is not accepted by the " .
82  "pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n",
83  "Element 'add', attribute 'dependsOnModule': '' is not a valid value of the atomic type" .
84  " 'typeModule'.\nLine: 1\n"
85  ],
86  ],
87  'add_dependsOnModule_attribute_less_minLenght_value' => [
88  '<?xml version="1.0"?><config><menu><add dependsOnModule="w" ' .
89  'id="Test_Value::some_value" title="Notifications" ' .
90  'module="Test_Value" resource="Test_Value::value"/>' .
91  '</menu></config>',
92  [
93  "Element 'add', attribute 'dependsOnModule': [facet 'pattern'] The value 'w' is not accepted by the " .
94  "pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n",
95  "Element 'add', attribute 'dependsOnModule': 'w' is not a valid value of the atomic type"
96  . " 'typeModule'.\nLine: 1\n"
97  ],
98  ],
99  'add_dependsOnModule_attribute_notallowed_symbols_value' => [
100  '<?xml version="1.0"?><config><menu><add dependsOnModule="@#erw" ' .
101  'id="Test_Value::some_value" title="Notifications" ' .
102  'module="Test_Value" resource="Test_Value::value"/>' .
103  '</menu></config>',
104  [
105  "Element 'add', attribute 'dependsOnModule': [facet 'pattern'] The value '@#erw' is not " .
106  "accepted by the pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n",
107  "Element 'add', attribute 'dependsOnModule': '@#erw' is not a valid value of the atomic " .
108  "type 'typeModule'.\nLine: 1\n"
109  ],
110  ],
111  'add_id_attribute_empty_value' => [
112  '<?xml version="1.0"?><config><menu><add id="" title="Notifications" module="Test_Value" ' .
113  'resource="Test_Value::value"/></menu></config>',
114  [
115  "Element 'add', attribute 'id': [facet 'pattern'] The value '' is not accepted by the " .
116  "pattern '[A-Za-z0-9/_:]{3,}'.\nLine: 1\n",
117  "Element 'add', attribute 'id': '' is not a valid value of the atomic type 'typeId'.\nLine: 1\n",
118  "Element 'add', attribute 'id': Warning: No precomputed value available, the value was either invalid or " .
119  "something strange happend.\nLine: 1\n"
120  ],
121  ],
122  'add_id_attribute_less_minLenght_value' => [
123  '<?xml version="1.0"?><config><menu><add id="ma" title="Notifications" module="Test_Value" ' .
124  'resource="Test_Value::value"/></menu></config>',
125  [
126  "Element 'add', attribute 'id': [facet 'pattern'] The value 'ma' is not accepted by the " .
127  "pattern '[A-Za-z0-9/_:]{3,}'.\nLine: 1\n",
128  "Element 'add', attribute 'id': 'ma' is not a valid value of the atomic type 'typeId'.\nLine: 1\n",
129  "Element 'add', attribute 'id': Warning: No precomputed value available, the value was either invalid or " .
130  "something strange happend.\nLine: 1\n"
131  ],
132  ],
133  'add_id_attribute_notallowed_symbols_value' => [
134  '<?xml version="1.0"?><config><menu><add id="Magento)value::some_value" ' .
135  'title="Notifications" module="Test_Value" ' .
136  'resource="Test_Value::value"/></menu></config>',
137  [
138  "Element 'add', attribute 'id': [facet 'pattern'] The value 'Magento)value::some_value' is not " .
139  "accepted by the pattern '[A-Za-z0-9/_:]{3,}'.\nLine: 1\n",
140  "Element 'add', attribute 'id': 'Magento)value::some_value' " .
141  "is not a valid value of the atomic type 'typeId'.\nLine: 1\n",
142  "Element 'add', attribute 'id': Warning: No precomputed value available, the value was either invalid or " .
143  "something strange happend.\nLine: 1\n"
144  ],
145  ],
146  'add_module_attribute_empty_value' => [
147  '<?xml version="1.0"?><config><menu><add module="" id="Test_Value::some_value" ' .
148  'title="Notifications" resource="Test_Value::value"/></menu></config>',
149  [
150  "Element 'add', attribute 'module': [facet 'pattern'] The value '' is not accepted by the " .
151  "pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n",
152  "Element 'add', attribute 'module': '' is not a valid value of the atomic type 'typeModule'.\nLine: 1\n"
153  ],
154  ],
155  'add_module_attribute_less_minLenght_value' => [
156  '<?xml version="1.0"?><config><menu><add module="we" ' .
157  'id="Test_Value::some_value" title="Notifications" ' .
158  'resource="Test_Value::value"/></menu></config>',
159  [
160  "Element 'add', attribute 'module': [facet 'pattern'] The value 'we' is not accepted by the " .
161  "pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n",
162  "Element 'add', attribute 'module': 'we' is not a valid value of the atomic type 'typeModule'.\nLine: 1\n"
163  ],
164  ],
165  'add_module_attribute_notallowed_symbols_value' => [
166  '<?xml version="1.0"?><config><menu><add module="Test_Va%lue" ' .
167  'id="Test_Value::some_value" title="Notifications" ' .
168  'resource="Test_Value::value"/></menu></config>',
169  [
170  "Element 'add', attribute 'module': [facet 'pattern'] The value 'Test_Va%lue' is not accepted by the " .
171  "pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n",
172  "Element 'add', attribute 'module': 'Test_Va%lue' is not a valid value of the atomic type"
173  . " 'typeModule'.\nLine: 1\n"
174  ],
175  ],
176  'add_parent_attribute_empty_value' => [
177  '<?xml version="1.0"?><config><menu><add parent="" id="Test_Value::some_value" ' .
178  'title="Notifications" module="Test_Value" ' .
179  'resource="Test_Value::value"/></menu></config>',
180  [
181  "Element 'add', attribute 'parent': [facet 'pattern'] The value '' is not accepted by the " .
182  "pattern '[A-Za-z0-9/_:]{3,}'.\nLine: 1\n",
183  "Element 'add', attribute 'parent': '' is not a valid value of the atomic type 'typeId'.\nLine: 1\n"
184  ],
185  ],
186  'add_parent_attribute_less_minLenght_value' => [
187  '<?xml version="1.0"?><config><menu><add parent="Ma" id="Test_Value::some_value" ' .
188  'title="Notifications" module="Test_Value" ' .
189  'resource="Test_Value::value"/></menu></config>',
190  [
191  "Element 'add', attribute 'parent': [facet 'pattern'] The value 'Ma' is not accepted by the " .
192  "pattern '[A-Za-z0-9/_:]{3,}'.\nLine: 1\n",
193  "Element 'add', attribute 'parent': 'Ma' is not a valid value of the atomic type 'typeId'.\nLine: 1\n"
194  ],
195  ],
196  'add_parent_attribute_notallowed_symbols_value' => [
197  '<?xml version="1.0"?><config><menu><add parent="Some#Name::system_other_settings" ' .
198  'id="Test_Value::some_value" title="Notifications" ' .
199  'module="Test_Value" resource="Test_Value::value"/>' .
200  '</menu></config>',
201  [
202  "Element 'add', attribute 'parent': [facet 'pattern'] The value 'Some#Name::system_other_settings' " .
203  "is not accepted by the pattern '[A-Za-z0-9/_:]{3,}'.\nLine: 1\n",
204  "Element 'add', attribute 'parent': 'Some#Name::system_other_settings' " .
205  "is not a valid value of the atomic " .
206  "type 'typeId'.\nLine: 1\n"
207  ],
208  ],
209  'add_resource_attribute_notvalid_regexp_value1' => [
210  '<?xml version="1.0"?><config><menu><add id="Test_Value::some_value" ' .
211  'title="Notifications" module="Test_Value" ' .
212  'resource="test_Value::value"/></menu></config>',
213  [
214  "Element 'add', attribute 'resource': [facet 'pattern'] The value 'test_Value::value' is not " .
215  "accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.\nLine: 1\n",
216  "Element 'add', attribute 'resource': 'test_Value::value' is not a valid value of the atomic " .
217  "type 'typeResource'.\nLine: 1\n"
218  ],
219  ],
220  'add_resource_attribute_notvalid_regexp_value2' => [
221  '<?xml version="1.0"?><config><menu><add id="Test_Value::some_value" ' .
222  'title="Notifications" module="Test_Value" ' .
223  'resource="Test_value::value"/></menu></config>',
224  [
225  "Element 'add', attribute 'resource': [facet 'pattern'] The value 'Test_value::value' is not " .
226  "accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.\nLine: 1\n",
227  "Element 'add', attribute 'resource': 'Test_value::value' is not a valid value of the atomic " .
228  "type 'typeResource'.\nLine: 1\n"
229  ],
230  ],
231  'add_resource_attribute_notvalid_regexp_value3' => [
232  '<?xml version="1.0"?><config><menu><add id="Test_Value::some_value" ' .
233  'title="Notifications" module="Test_Value" ' .
234  'resource="M#$%23_value::value"/></menu></config>',
235  [
236  "Element 'add', attribute 'resource': [facet 'pattern'] The value 'M#$%23_value::value' is not " .
237  "accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.\nLine: 1\n",
238  "Element 'add', attribute 'resource': 'M#$%23_value::value' is not a valid value of the atomic " .
239  "type 'typeResource'.\nLine: 1\n"
240  ],
241  ],
242  'add_resource_attribute_notvalid_regexp_value4' => [
243  '<?xml version="1.0"?><config><menu><add id="Test_Value::some_value" ' .
244  'title="Notifications" module="Test_Value" ' .
245  'resource="_value::value"/></menu></config>',
246  [
247  "Element 'add', attribute 'resource': [facet 'pattern'] The value '_value::value' is not accepted by " .
248  "the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.\nLine: 1\n",
249  "Element 'add', attribute 'resource': '_value::value' is not a valid value of the atomic " .
250  "type 'typeResource'.\nLine: 1\n"
251  ],
252  ],
253  'add_resource_attribute_notvalid_regexp_value5' => [
254  '<?xml version="1.0"?><config><menu><add id="Test_Value::some_value" ' .
255  'title="Notifications" module="Test_Value" resource="Magento_::value"/>' .
256  '</menu></config>',
257  [
258  "Element 'add', attribute 'resource': [facet 'pattern'] The value 'Magento_::value' is not " .
259  "accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.\nLine: 1\n",
260  "Element 'add', attribute 'resource': 'Magento_::value' is not a valid value of the atomic " .
261  "type 'typeResource'.\nLine: 1\n"
262  ],
263  ],
264  'add_resource_attribute_notvalid_regexp_value6' => [
265  '<?xml version="1.0"?><config><menu><add id="Test_Value::some_value" ' .
266  'title="Notifications" module="Test_Value" ' .
267  'resource="Test_Value:value"/></menu></config>',
268  [
269  "Element 'add', attribute 'resource': [facet 'pattern'] The value 'Test_Value:value' is not " .
270  "accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.\nLine: 1\n",
271  "Element 'add', attribute 'resource': 'Test_Value:value' is not a valid value of the atomic " .
272  "type 'typeResource'.\nLine: 1\n"
273  ],
274  ],
275  'add_resource_attribute_notvalid_regexp_value7' => [
276  '<?xml version="1.0"?><config><menu><add id="Test_Value::some_value" ' .
277  'title="Notifications" module="Test_Value" ' .
278  'resource="Test_Value::"/></menu></config>',
279  [
280  "Element 'add', attribute 'resource': [facet 'pattern'] The value 'Test_Value::' is not " .
281  "accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.\nLine: 1\n",
282  "Element 'add', attribute 'resource': 'Test_Value::' " .
283  "is not a valid value of the atomic type 'typeResource'.\nLine: 1\n"
284  ],
285  ],
286  'add_sortOrder_attribute_empty_value' => [
287  '<?xml version="1.0"?><config><menu><add sortOrder="" id="Test_Value::some_value" ' .
288  'title="Notifications" module="Test_Value" ' .
289  'resource="Test_Value::value"/></menu></config>',
290  ["Element 'add', attribute 'sortOrder': '' is not a valid value of the atomic type 'xs:int'.\nLine: 1\n"],
291  ],
292  'add_sortOrder_attribute_wrong_value_type' => [
293  '<?xml version="1.0"?><config><menu><add sortOrder="string value" ' .
294  'id="Test_Value::some_value" title="Notifications" ' .
295  'module="Test_Value" resource="Test_Value::value"/>' .
296  '</menu></config>',
297  [
298  "Element 'add', attribute 'sortOrder': 'string value' is not a valid value of the atomic " .
299  "type 'xs:int'.\nLine: 1\n"
300  ],
301  ],
302  'add_title_attribute_empty_value' => [
303  '<?xml version="1.0"?><config><menu><add title="" id="Test_Value::some_value" ' .
304  'module="Test_Value" resource="Test_Value::value"/>' .
305  '</menu></config>',
306  [
307  "Element 'add', attribute 'title': [facet 'minLength'] The value '' has a length of '0'; this " .
308  "underruns the allowed minimum length of '3'.\nLine: 1\n",
309  "Element 'add', attribute 'title': '' is not a valid value of the atomic type 'typeTitle'.\nLine: 1\n"
310  ],
311  ],
312  'add_title_attribute_less_minLenght_value' => [
313  '<?xml version="1.0"?><config><menu><add title="No" id="Test_Value::some_value" ' .
314  'module="Test_Value" resource="Test_Value::value"/>' .
315  '</menu></config>',
316  [
317  "Element 'add', attribute 'title': [facet 'minLength'] The value 'No' has a length of '2'; this " .
318  "underruns the allowed minimum length of '3'.\nLine: 1\n",
319  "Element 'add', attribute 'title': 'No' is not a valid value of the atomic type 'typeTitle'.\nLine: 1\n"
320  ],
321  ],
322  'add_title_attribute_more_maxLenght_value' => [
323  '<?xml version="1.0"?><config><menu><add title="Lorem ipsum dolor sit amet, consectetur adipisicing" ' .
324  'id="Test_Value::some_value" module="Test_Value" ' .
325  'resource="Test_Value::value"/></menu></config>',
326  [
327  "Element 'add', attribute 'title': [facet 'maxLength'] The value 'Lorem ipsum dolor sit amet, " .
328  "consectetur adipisicing' has a length of '51'; this exceeds the allowed maximum length" .
329  " of '50'.\nLine: 1\n",
330  "Element 'add', attribute 'title': 'Lorem ipsum dolor sit amet, consectetur adipisicing' is not a " .
331  "valid value of the atomic type 'typeTitle'.\nLine: 1\n"
332  ],
333  ],
334  'add_toolTip_attribute_empty_value' => [
335  '<?xml version="1.0"?><config><menu><add toolTip="" id="Test_Value::some_value" ' .
336  'title="Notifications" module="Test_Value" ' .
337  'resource="Test_Value::value"/></menu></config>',
338  [
339  "Element 'add', attribute 'toolTip': [facet 'minLength'] The value '' has a length of '0'; this " .
340  "underruns the allowed minimum length of '3'.\nLine: 1\n",
341  "Element 'add', attribute 'toolTip': '' is not a valid value of the atomic type 'typeTitle'.\nLine: 1\n"
342  ],
343  ],
344  'add_toolTip_attribute_less_minLenght_value' => [
345  '<?xml version="1.0"?><config><menu><add toolTip="st" id="Test_Value::some_value" ' .
346  'title="Notifications" module="Test_Value" ' .
347  'resource="Test_Value::value"/></menu></config>',
348  [
349  "Element 'add', attribute 'toolTip': [facet 'minLength'] The value 'st' has a length of '2'; this " .
350  "underruns the allowed minimum length of '3'.\nLine: 1\n",
351  "Element 'add', attribute 'toolTip': 'st' is not a valid value of the atomic type 'typeTitle'.\nLine: 1\n"
352  ],
353  ],
354  'add_toolTip_attribute_more_maxLenght_value' => [
355  '<?xml version="1.0"?><config><menu><add toolTip="Lorem ipsum dolor sit amet, consectetur adipisicing" ' .
356  'id="Test_Value::some_value" title="Notifications" ' .
357  'module="Test_Value" resource="Test_Value::value"/>' .
358  '</menu></config>',
359  [
360  "Element 'add', attribute 'toolTip': [facet 'maxLength'] The value 'Lorem ipsum dolor sit amet, " .
361  "consectetur adipisicing' has a length of '51'; this exceeds the allowed maximum length" .
362  " of '50'.\nLine: 1\n",
363  "Element 'add', attribute 'toolTip': 'Lorem ipsum dolor sit amet, consectetur adipisicing' is not a " .
364  "valid value of the atomic type 'typeTitle'.\nLine: 1\n"
365  ],
366  ],
367  'add_with_notallowed_atrribute' => [
368  '<?xml version="1.0"?><config><menu><add notallowed="some value" ' .
369  'id="Test_Value::some_value" title="Notifications" ' .
370  'module="Test_Value" resource="Test_Value::value"/>' .
371  '</menu></config>',
372  ["Element 'add', attribute 'notallowed': The attribute 'notallowed' is not allowed.\nLine: 1\n"],
373  ],
374  'add_with_same_id_attribute_value' => [
375  '<?xml version="1.0"?><config><menu><add id="Test_Value::some_value" ' .
376  'title="Notifications" module="Test_Value" ' .
377  'resource="Test_Value::value"/> ' .
378  '<add id="Test_Value::some_value" title="Notifications" ' .
379  'module="Test_Value" sortOrder="10" parent="Test_Value::system_other_settings" ' .
380  'action="adminhtml/notification" resource="Test_Value::value"/>' .
381  '</menu></config>',
382  [
383  "Element 'add': Duplicate key-sequence ['Test_Value::some_value'] in unique " .
384  "identity-constraint 'uniqueAddItemId'.\nLine: 1\n"
385  ],
386  ],
387  'add_without_req_attr' => [
388  '<?xml version="1.0"?><config><menu><add action="adminhtml/notification"/></menu></config>',
389  [
390  "Element 'add': The attribute 'id' is required but missing.\nLine: 1\n",
391  "Element 'add': The attribute 'title' is required but missing.\nLine: 1\n",
392  "Element 'add': The attribute 'module' is required but missing.\nLine: 1\n",
393  "Element 'add': The attribute 'resource' is required but missing.\nLine: 1\n"
394  ],
395  ],
396  'add_without_required_attribute_id' => [
397  '<?xml version="1.0"?><config><menu><add title="Notifications" module="Test_Value" ' .
398  'sortOrder="10" parent="Test_Value::system_other_settings" action="adminhtml/notification" ' .
399  'resource="Test_Value::value"/></menu></config>',
400  ["Element 'add': The attribute 'id' is required but missing.\nLine: 1\n"],
401  ],
402  'add_without_required_attribute_module' => [
403  '<?xml version="1.0"?><config><menu><add id="Test_Value::some_value" ' .
404  'title="Notifications" resource="Test_Value::value"/></menu></config>',
405  ["Element 'add': The attribute 'module' is required but missing.\nLine: 1\n"],
406  ],
407  'add_without_required_attribute_resource' => [
408  '<?xml version="1.0"?><config><menu><add id="Test_Value::some_value" ' .
409  'title="Notifications" module="Test_Value"/></menu></config>',
410  ["Element 'add': The attribute 'resource' is required but missing.\nLine: 1\n"],
411  ],
412  'double_menu' => [
413  '<?xml version="1.0"?><config><menu></menu><menu/></config>',
414  ["Element 'menu': This element is not expected.\nLine: 1\n"],
415  ],
416  'remove_id_attribute_empty_value' => [
417  '<?xml version="1.0"?><config><menu><remove id=""/></menu></config>',
418  [
419  "Element 'remove', attribute 'id': [facet 'pattern'] The value '' is not accepted by the " .
420  "pattern '[A-Za-z0-9/_:]{3,}'.\nLine: 1\n",
421  "Element 'remove', attribute 'id': '' is not a valid value of the atomic type 'typeId'.\nLine: 1\n"
422  ],
423  ],
424  'remove_id_attribute_less_minLenght_value' => [
425  '<?xml version="1.0"?><config><menu><remove id="Test_Value::system_%currency"/></menu></config>',
426  [
427  "Element 'remove', attribute 'id': [facet 'pattern'] The value 'Test_Value::system_%currency' is not " .
428  "accepted by the pattern '[A-Za-z0-9/_:]{3,}'.\nLine: 1\n",
429  "Element 'remove', attribute 'id': 'Test_Value::system_%currency' is not a valid value of the " .
430  "atomic type 'typeId'.\nLine: 1\n"
431  ],
432  ],
433  'remove_id_attribute_notallowed_symbols_value' => [
434  '<?xml version="1.0"?><config><menu><remove id="Test_Value::system#currency"/></menu></config>',
435  [
436  "Element 'remove', attribute 'id': [facet 'pattern'] The value 'Test_Value::system#currency' is not " .
437  "accepted by the pattern '[A-Za-z0-9/_:]{3,}'.\nLine: 1\n",
438  "Element 'remove', attribute 'id': 'Test_Value::system#currency' is not a valid value of the " .
439  "atomic type 'typeId'.\nLine: 1\n"
440  ],
441  ],
442  'remove_with_notallowed_atrribute' => [
443  '<?xml version="1.0"?><config><menu><remove id="Test_Value::system_currency" notallowe="some text"/>' .
444  '</menu></config>',
445  ["Element 'remove', attribute 'notallowe': The attribute 'notallowe' is not allowed.\nLine: 1\n"],
446  ],
447  'remove_without_required_attribute_id' => [
448  '<?xml version="1.0"?><config><menu><remove/></menu></config>',
449  ["Element 'remove': The attribute 'id' is required but missing.\nLine: 1\n"],
450  ],
451  'update_action_attribute_empty_value' => [
452  '<?xml version="1.0"?><config><menu><update action="" ' . 'id="Test_Value::some_value"/></menu></config>',
453  [
454  "Element 'update', attribute 'action': [facet 'pattern'] The value '' is not accepted by the " .
455  "pattern '[a-zA-Z0-9/_]{3,}'.\nLine: 1\n",
456  "Element 'update', attribute 'action': '' is not a valid value of the atomic type 'typeAction'.\nLine: 1\n"
457  ],
458  ],
459  'update_action_attribute_less_minLenght_value' => [
460  '<?xml version="1.0"?><config><menu><update action="v" ' .
461  'id="Test_Value::some_value" ' .
462  'resource="Test_Value::value"/></menu></config>',
463  [
464  "Element 'update', attribute 'action': [facet 'pattern'] The value 'v' is not accepted by the " .
465  "pattern '[a-zA-Z0-9/_]{3,}'.\nLine: 1\n",
466  "Element 'update', attribute 'action': 'v' is not a valid value of the atomic type 'typeAction'.\nLine: 1\n"
467  ],
468  ],
469  'update_action_attribute_notallowed_symbols_value' => [
470  '<?xml version="1.0"?><config><menu><update action="/@##gt;" ' .
471  'id="Test_Value::some_value"/></menu></config>',
472  [
473  "Element 'update', attribute 'action': [facet 'pattern'] The value '/@##gt;' is not " .
474  "accepted by the pattern '[a-zA-Z0-9/_]{3,}'.\nLine: 1\n",
475  "Element 'update', attribute 'action': '/@##gt;' is not a valid value of the atomic" .
476  " type 'typeAction'.\nLine: 1\n"
477  ],
478  ],
479  'update_dependsOnConfig_attribute_empty_value' => [
480  '<?xml version="1.0"?><config><menu><update id="Module_Name::system_config" dependsOnConfig=""/></menu>' .
481  '</config>',
482  [
483  "Element 'update', attribute 'dependsOnConfig': [facet 'pattern'] The value '' is not accepted by the " .
484  "pattern '[A-Za-z0-9_/]{3,}'.\nLine: 1\n",
485  "Element 'update', attribute 'dependsOnConfig': '' is not a valid value of the atomic " .
486  "type 'typeDependsConfig'.\nLine: 1\n"
487  ],
488  ],
489  'update_dependsOnConfig_attribute_less_minLenght_value' => [
490  '<?xml version="1.0"?><config><menu><update id="Module_Name::system_config" ' .
491  'dependsOnConfig="we"/></menu></config>',
492  [
493  "Element 'update', attribute 'dependsOnConfig': [facet 'pattern'] The value 'we' is not accepted by " .
494  "the pattern '[A-Za-z0-9_/]{3,}'.\nLine: 1\n",
495  "Element 'update', attribute 'dependsOnConfig': 'we' is not a valid value of the atomic " .
496  "type 'typeDependsConfig'.\nLine: 1\n"
497  ],
498  ],
499  'update_dependsOnConfig_attribute_notallowed_symbols_value' => [
500  '<?xml version="1.0"?><config><menu><update id="Module_Name::system_config" dependsOnConfig="someconf%"/>' .
501  '</menu></config>',
502  [
503  "Element 'update', attribute 'dependsOnConfig': [facet 'pattern'] The value 'someconf%' is not " .
504  "accepted by the pattern '[A-Za-z0-9_/]{3,}'.\nLine: 1\n",
505  "Element 'update', attribute 'dependsOnConfig': 'someconf%' is not a valid value of the atomic " .
506  "type 'typeDependsConfig'.\nLine: 1\n"
507  ],
508  ],
509  'update_dependsOnModule_attribute_empty_value' => [
510  '<?xml version="1.0"?><config><menu><update id="Module_Name::system_config" ' .
511  'dependsOnModule=""/></menu></config>',
512  [
513  "Element 'update', attribute 'dependsOnModule': [facet 'pattern'] The value '' is not accepted by " .
514  "the pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n",
515  "Element 'update', attribute 'dependsOnModule': '' is not a valid value of the atomic" .
516  " type 'typeModule'.\nLine: 1\n"
517  ],
518  ],
519  'update_dependsOnModule_attribute_less_minLenght_value' => [
520  '<?xml version="1.0"?><config><menu><update id="Module_Name::system_config" ' .
521  'dependsOnModule="qw"/></menu></config>',
522  [
523  "Element 'update', attribute 'dependsOnModule': [facet 'pattern'] The value 'qw' is not accepted " .
524  "by the pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n",
525  "Element 'update', attribute 'dependsOnModule': 'qw' is not a valid value of the atomic" .
526  " type 'typeModule'.\nLine: 1\n"
527  ],
528  ],
529  'update_dependsOnModule_attribute_notallowed_symbols_value' => [
530  '<?xml version="1.0"?><config><menu><update id="Module_Name::system_config" ' .
531  'dependsOnModule="someModule#1"/></menu></config>',
532  [
533  "Element 'update', attribute 'dependsOnModule': [facet 'pattern'] The value 'someModule#1' is not " .
534  "accepted by the pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n",
535  "Element 'update', attribute 'dependsOnModule': 'someModule#1' is not a valid value of the atomic " .
536  "type 'typeModule'.\nLine: 1\n"
537  ],
538  ],
539  'update_id_attribute_empty_value' => [
540  '<?xml version="1.0"?><config><menu><update id="" title="Notifications"/></menu></config>',
541  [
542  "Element 'update', attribute 'id': [facet 'pattern'] The value '' is not accepted by the " .
543  "pattern '[A-Za-z0-9/_:]{3,}'.\nLine: 1\n",
544  "Element 'update', attribute 'id': '' is not a valid value of the atomic type 'typeId'.\nLine: 1\n"
545  ],
546  ],
547  'update_id_attribute_less_minLenght_value' => [
548  '<?xml version="1.0"?><config><menu><update id="g" module="Test_Value"/></menu></config>',
549  [
550  "Element 'update', attribute 'id': [facet 'pattern'] The value 'g' is not accepted by the " .
551  "pattern '[A-Za-z0-9/_:]{3,}'.\nLine: 1\n",
552  "Element 'update', attribute 'id': 'g' is not a valid value of the atomic type 'typeId'.\nLine: 1\n"
553  ],
554  ],
555  'update_id_attribute_notallowed_symbols_value' => [
556  '<?xml version="1.0"?><config><menu><update id="Magento+value::some_value"/>' . '</menu></config>',
557  [
558  "Element 'update', attribute 'id': [facet 'pattern'] The value 'Magento+value::some_value' is not " .
559  "accepted by the pattern '[A-Za-z0-9/_:]{3,}'.\nLine: 1\n",
560  "Element 'update', attribute 'id': 'Magento+value::some_value' is not a valid value of the atomic " .
561  "type 'typeId'.\nLine: 1\n"
562  ],
563  ],
564  'update_module_attribute_empty_value' => [
565  '<?xml version="1.0"?><config><menu><update module="" id="Module_Name::system_config"/></menu></config>',
566  [
567  "Element 'update', attribute 'module': [facet 'pattern'] The value '' is not accepted by the " .
568  "pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n",
569  "Element 'update', attribute 'module': '' is not a valid value of the atomic type 'typeModule'.\nLine: 1\n"
570  ],
571  ],
572  'update_module_attribute_less_minLenght_value' => [
573  '<?xml version="1.0"?><config><menu><update id="Module_Name::system_config" module="we"/></menu></config>',
574  [
575  "Element 'update', attribute 'module': [facet 'pattern'] The value 'we' is not accepted by the " .
576  "pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n",
577  "Element 'update', attribute 'module': 'we' is not a valid value of the atomic" .
578  " type 'typeModule'.\nLine: 1\n"
579  ],
580  ],
581  'update_module_attribute_notallowed_symbols_value' => [
582  '<?xml version="1.0"?><config><menu><update id="Module_Name::system_config" module="@#$"/></menu></config>',
583  [
584  "Element 'update', attribute 'module': [facet 'pattern'] The value '@#$' is not accepted by the " .
585  "pattern '[A-Za-z0-9_]{3,}'.\nLine: 1\n",
586  "Element 'update', attribute 'module': '@#$' is not a valid value of the atomic" .
587  " type 'typeModule'.\nLine: 1\n"
588  ],
589  ],
590  'update_parent_attribute_empty_value' => [
591  '<?xml version="1.0"?><config><menu><update parent="" ' . 'id="Test_Value::some_value"/></menu></config>',
592  [
593  "Element 'update', attribute 'parent': [facet 'pattern'] The value '' is not accepted by the " .
594  "pattern '[A-Za-z0-9/_:]{3,}'.\nLine: 1\n",
595  "Element 'update', attribute 'parent': '' is not a valid value of the atomic" .
596  " type 'typeId'.\nLine: 1\n"
597  ],
598  ],
599  'update_parent_attribute_less_minLenght_value' => [
600  '<?xml version="1.0"?><config><menu><update parent="fg" ' . 'id="Test_Value::some_value"/></menu></config>',
601  [
602  "Element 'update', attribute 'parent': [facet 'pattern'] The value 'fg' is not accepted by " .
603  "the pattern '[A-Za-z0-9/_:]{3,}'.\nLine: 1\n",
604  "Element 'update', attribute 'parent': 'fg' is not a valid value of the atomic type 'typeId'.\nLine: 1\n"
605  ],
606  ],
607  'update_parent_attribute_notallowed_symbols_value' => [
608  '<?xml version="1.0"?><config><menu><update parent="Test_Value::system_other%settings" ' .
609  'id="Test_Value::some_value"/></menu></config>',
610  [
611  "Element 'update', attribute 'parent': [facet 'pattern'] The value " .
612  "'Test_Value::system_other%settings' is not accepted by the pattern '[A-Za-z0-9/_:]{3,}'.\nLine: 1\n",
613  "Element 'update', attribute 'parent': 'Test_Value::system_other%settings' is not a valid value of the " .
614  "atomic type 'typeId'.\nLine: 1\n"
615  ],
616  ],
617  'update_resource_attribute_notvalid_regexp_value1' => [
618  '<?xml version="1.0"?><config><menu><update id="Module_Name::system_config" ' .
619  'resource="test_Value::value"/></menu></config>',
620  [
621  "Element 'update', attribute 'resource': [facet 'pattern'] The value 'test_Value::value' is not " .
622  "accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.\nLine: 1\n",
623  "Element 'update', attribute 'resource': 'test_Value::value' is not a valid value of the atomic " .
624  "type 'typeResource'.\nLine: 1\n"
625  ],
626  ],
627  'update_resource_attribute_notvalid_regexp_value2' => [
628  '<?xml version="1.0"?><config><menu><update id="Module_Name::system_config" ' .
629  'resource="Test_value::value"/></menu></config>',
630  [
631  "Element 'update', attribute 'resource': [facet 'pattern'] The value 'Test_value::value' is not " .
632  "accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.\nLine: 1\n",
633  "Element 'update', attribute 'resource': 'Test_value::value' is not a valid value of the atomic " .
634  "type 'typeResource'.\nLine: 1\n"
635  ],
636  ],
637  'update_resource_attribute_notvalid_regexp_value3' => [
638  '<?xml version="1.0"?><config><menu><update id="Module_Name::system_config" ' .
639  'resource="M#$%23_value::value"/></menu></config>',
640  [
641  "Element 'update', attribute 'resource': [facet 'pattern'] The value 'M#$%23_value::value' is not " .
642  "accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.\nLine: 1\n",
643  "Element 'update', attribute 'resource': 'M#$%23_value::value' is not a valid value of the atomic " .
644  "type 'typeResource'.\nLine: 1\n"
645  ],
646  ],
647  'update_resource_attribute_notvalid_regexp_value4' => [
648  '<?xml version="1.0"?><config><menu><update id="Module_Name::system_config" ' .
649  'resource="_value::value"/></menu></config>',
650  [
651  "Element 'update', attribute 'resource': [facet 'pattern'] The value '_value::value' is not " .
652  "accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.\nLine: 1\n",
653  "Element 'update', attribute 'resource': '_value::value' is not a valid value of the atomic " .
654  "type 'typeResource'.\nLine: 1\n"
655  ],
656  ],
657  'update_resource_attribute_notvalid_regexp_value5' => [
658  '<?xml version="1.0"?><config><menu><update id="Module_Name::system_config" ' .
659  'resource="Magento_::value"/></menu></config>',
660  [
661  "Element 'update', attribute 'resource': [facet 'pattern'] The value 'Magento_::value' is not " .
662  "accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.\nLine: 1\n",
663  "Element 'update', attribute 'resource': 'Magento_::value' is not a valid value of the atomic " .
664  "type 'typeResource'.\nLine: 1\n"
665  ],
666  ],
667  'update_resource_attribute_notvalid_regexp_value6' => [
668  '<?xml version="1.0"?><config><menu><update id="Module_Name::system_config" ' .
669  'resource="Test_Value:value"/></menu></config>',
670  [
671  "Element 'update', attribute 'resource': [facet 'pattern'] The value 'Test_Value:value' is not " .
672  "accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.\nLine: 1\n",
673  "Element 'update', attribute 'resource': 'Test_Value:value' is not a valid value of the atomic " .
674  "type 'typeResource'.\nLine: 1\n"
675  ],
676  ],
677  'update_resource_attribute_notvalid_regexp_value7' => [
678  '<?xml version="1.0"?><config><menu><update id="Module_Name::system_config" ' .
679  'resource="Test_Value::"/></menu></config>',
680  [
681  "Element 'update', attribute 'resource': [facet 'pattern'] The value 'Test_Value::' is not " .
682  "accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.\nLine: 1\n",
683  "Element 'update', attribute 'resource': 'Test_Value::' is not a valid value of the atomic " .
684  "type 'typeResource'.\nLine: 1\n"
685  ],
686  ],
687  'update_sortOrder_attribute_empty_value' => [
688  '<?xml version="1.0"?><config><menu><update sortOrder="" ' . 'id="Test_Value::some_value"/></menu></config>',
689  ["Element 'update', attribute 'sortOrder': '' is not a valid value of the atomic type 'xs:int'.\nLine: 1\n"],
690  ],
691  'update_sortOrder_attribute_wrong_value_type' => [
692  '<?xml version="1.0"?><config><menu><add sortOrder="string" ' .
693  'id="Test_Value::some_value" title="Notifications" ' .
694  'module="Test_Value" resource="Test_Value::value"/>' .
695  '</menu></config>',
696  ["Element 'add', attribute 'sortOrder': 'string' is not a valid value of the atomic type 'xs:int'.\nLine: 1\n"],
697  ],
698  'update_title_attribute_empty_value' => [
699  '<?xml version="1.0"?><config><menu><update id="Module_Name::system_config" title=""/></menu></config>',
700  [
701  "Element 'update', attribute 'title': [facet 'minLength'] The value '' has a length of '0'; this " .
702  "underruns the allowed minimum length of '3'.\nLine: 1\n",
703  "Element 'update', attribute 'title': '' is not a valid value of the atomic type 'typeTitle'.\nLine: 1\n"
704  ],
705  ],
706  'update_title_attribute_less_minLenght_value' => [
707  '<?xml version="1.0"?><config><menu><update id="Module_Name::system_config" title="am"/></menu></config>',
708  [
709  "Element 'update', attribute 'title': [facet 'minLength'] The value 'am' has a length of '2'; this " .
710  "underruns the allowed minimum length of '3'.\nLine: 1\n",
711  "Element 'update', attribute 'title': 'am' is not a valid value of the atomic type 'typeTitle'.\nLine: 1\n"
712  ],
713  ],
714  'update_title_attribute_more_maxLenght_value' => [
715  '<?xml version="1.0"?><config><menu><update id="Module_Name::system_config" ' .
716  'title="Lorem ipsum dolor sit amet, consectetur adipisicing"/></menu></config>',
717  [
718  "Element 'update', attribute 'title': [facet 'maxLength'] The value 'Lorem ipsum dolor sit amet, " .
719  "consectetur adipisicing' has a length of '51'; this exceeds the allowed maximum" .
720  " length of '50'.\nLine: 1\n",
721  "Element 'update', attribute 'title': 'Lorem ipsum dolor sit amet, " .
722  "consectetur adipisicing' is not a valid " .
723  "value of the atomic type 'typeTitle'.\nLine: 1\n"
724  ],
725  ],
726  'update_toolTip_attribute_empty_value ' => [
727  '<?xml version="1.0"?><config><menu><update id="Module_Name::system_config" toolTip=""/></menu></config>',
728  [
729  "Element 'update', attribute 'toolTip': [facet 'minLength'] The value '' has a length of '0'; this " .
730  "underruns the allowed minimum length of '3'.\nLine: 1\n",
731  "Element 'update', attribute 'toolTip': '' is not a valid value of the atomic type 'typeTitle'.\nLine: 1\n"
732  ],
733  ],
734  'update_toolTip_attribute_less_minLenght_value' => [
735  '<?xml version="1.0"?><config><menu><update id="Module_Name::system_config" toolTip="we"/></menu></config>',
736  [
737  "Element 'update', attribute 'toolTip': [facet 'minLength'] The value 'we' has a length of '2'; this " .
738  "underruns the allowed minimum length of '3'.\nLine: 1\n",
739  "Element 'update', attribute 'toolTip': 'we' is not a valid value of the atomic" .
740  " type 'typeTitle'.\nLine: 1\n"
741  ],
742  ],
743  'update_toolTip_attribute_more_maxLenght_value' => [
744  '<?xml version="1.0"?><config><menu><update id="Module_Name::system_config" ' .
745  'toolTip="Lorem ipsum dolor sit amet, consectetur adipisicing"/></menu></config>',
746  [
747  "Element 'update', attribute 'toolTip': [facet 'maxLength'] The value 'Lorem ipsum dolor sit " .
748  "amet, consectetur adipisicing' has a length of '51'; this exceeds the allowed maximum" .
749  " length of '50'.\nLine: 1\n",
750  "Element 'update', attribute 'toolTip': 'Lorem ipsum dolor sit amet, consectetur adipisicing' " .
751  "is not a valid value of the atomic type 'typeTitle'.\nLine: 1\n"
752  ],
753  ],
754  'update_with_notallowed_atrribute' => [
755  '<?xml version="1.0"?><config><menu><update notallowed="some value" ' .
756  'id="Test_Value::some_value" title="Notifications" ' .
757  'module="Test_Value" sortOrder="10" parent="Test_Value::system_other_settings" ' .
758  'action="adminhtml/notification" resource="Test_Value::value"/>' .
759  '</menu></config>',
760  ["Element 'update', attribute 'notallowed': The attribute 'notallowed' is not allowed.\nLine: 1\n"],
761  ],
762  'update_without_required_attribute_id' => [
763  '<?xml version="1.0"?><config><menu><update title="some text"/></menu></config>',
764  ["Element 'update': The attribute 'id' is required but missing.\nLine: 1\n"],
765  ],
766  'without_menu' => [
767  '<?xml version="1.0"?><config></config>',
768  ["Element 'config': Missing child element(s). Expected is ( menu ).\nLine: 1\n"],
769  ]
770 ];