Skip to content

Commit 607c343

Browse files
committed
Merge pull request #985 from andreaspenz/develop
Allow camelcase in vendorname for menus
2 parents a0727fb + 498f6ca commit 607c343

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

app/code/Magento/Backend/etc/menu.xsd

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
</xs:documentation>
132132
</xs:annotation>
133133
<xs:restriction base="xs:string">
134-
<xs:pattern value="[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}" />
134+
<xs:pattern value="[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}" />
135135
</xs:restriction>
136136
</xs:simpleType>
137137

dev/tests/unit/testsuite/Magento/Backend/Model/Menu/Config/_files/invalidMenuXmlArray.php

+14-14
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
'resource="test_Value::value"/></menu></config>',
210210
[
211211
"Element 'add', attribute 'resource': [facet 'pattern'] The value 'test_Value::value' is not " .
212-
"accepted by the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
212+
"accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
213213
"Element 'add', attribute 'resource': 'test_Value::value' is not a valid value of the atomic " .
214214
"type 'typeResource'."
215215
],
@@ -220,7 +220,7 @@
220220
'resource="Test_value::value"/></menu></config>',
221221
[
222222
"Element 'add', attribute 'resource': [facet 'pattern'] The value 'Test_value::value' is not " .
223-
"accepted by the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
223+
"accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
224224
"Element 'add', attribute 'resource': 'Test_value::value' is not a valid value of the atomic " .
225225
"type 'typeResource'."
226226
],
@@ -231,7 +231,7 @@
231231
'resource="M#$%23_value::value"/></menu></config>',
232232
[
233233
"Element 'add', attribute 'resource': [facet 'pattern'] The value 'M#$%23_value::value' is not " .
234-
"accepted by the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
234+
"accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
235235
"Element 'add', attribute 'resource': 'M#$%23_value::value' is not a valid value of the atomic " .
236236
"type 'typeResource'."
237237
],
@@ -242,7 +242,7 @@
242242
'resource="_value::value"/></menu></config>',
243243
[
244244
"Element 'add', attribute 'resource': [facet 'pattern'] The value '_value::value' is not accepted by " .
245-
"the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
245+
"the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
246246
"Element 'add', attribute 'resource': '_value::value' is not a valid value of the atomic " .
247247
"type 'typeResource'."
248248
],
@@ -253,7 +253,7 @@
253253
'</menu></config>',
254254
[
255255
"Element 'add', attribute 'resource': [facet 'pattern'] The value 'Magento_::value' is not " .
256-
"accepted by the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
256+
"accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
257257
"Element 'add', attribute 'resource': 'Magento_::value' is not a valid value of the atomic " .
258258
"type 'typeResource'."
259259
],
@@ -264,7 +264,7 @@
264264
'resource="Test_Value:value"/></menu></config>',
265265
[
266266
"Element 'add', attribute 'resource': [facet 'pattern'] The value 'Test_Value:value' is not " .
267-
"accepted by the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
267+
"accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
268268
"Element 'add', attribute 'resource': 'Test_Value:value' is not a valid value of the atomic " .
269269
"type 'typeResource'."
270270
],
@@ -275,7 +275,7 @@
275275
'resource="Test_Value::"/></menu></config>',
276276
[
277277
"Element 'add', attribute 'resource': [facet 'pattern'] The value 'Test_Value::' is not " .
278-
"accepted by the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
278+
"accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
279279
"Element 'add', attribute 'resource': 'Test_Value::' " .
280280
"is not a valid value of the atomic type 'typeResource'."
281281
],
@@ -608,7 +608,7 @@
608608
'resource="test_Value::value"/></menu></config>',
609609
[
610610
"Element 'update', attribute 'resource': [facet 'pattern'] The value 'test_Value::value' is not " .
611-
"accepted by the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
611+
"accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
612612
"Element 'update', attribute 'resource': 'test_Value::value' is not a valid value of the atomic " .
613613
"type 'typeResource'."
614614
],
@@ -618,7 +618,7 @@
618618
'resource="Test_value::value"/></menu></config>',
619619
[
620620
"Element 'update', attribute 'resource': [facet 'pattern'] The value 'Test_value::value' is not " .
621-
"accepted by the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
621+
"accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
622622
"Element 'update', attribute 'resource': 'Test_value::value' is not a valid value of the atomic " .
623623
"type 'typeResource'."
624624
],
@@ -628,7 +628,7 @@
628628
'resource="M#$%23_value::value"/></menu></config>',
629629
[
630630
"Element 'update', attribute 'resource': [facet 'pattern'] The value 'M#$%23_value::value' is not " .
631-
"accepted by the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
631+
"accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
632632
"Element 'update', attribute 'resource': 'M#$%23_value::value' is not a valid value of the atomic " .
633633
"type 'typeResource'."
634634
],
@@ -638,7 +638,7 @@
638638
'resource="_value::value"/></menu></config>',
639639
[
640640
"Element 'update', attribute 'resource': [facet 'pattern'] The value '_value::value' is not " .
641-
"accepted by the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
641+
"accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
642642
"Element 'update', attribute 'resource': '_value::value' is not a valid value of the atomic " .
643643
"type 'typeResource'."
644644
],
@@ -648,7 +648,7 @@
648648
'resource="Magento_::value"/></menu></config>',
649649
[
650650
"Element 'update', attribute 'resource': [facet 'pattern'] The value 'Magento_::value' is not " .
651-
"accepted by the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
651+
"accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
652652
"Element 'update', attribute 'resource': 'Magento_::value' is not a valid value of the atomic " .
653653
"type 'typeResource'."
654654
],
@@ -658,7 +658,7 @@
658658
'resource="Test_Value:value"/></menu></config>',
659659
[
660660
"Element 'update', attribute 'resource': [facet 'pattern'] The value 'Test_Value:value' is not " .
661-
"accepted by the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
661+
"accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
662662
"Element 'update', attribute 'resource': 'Test_Value:value' is not a valid value of the atomic " .
663663
"type 'typeResource'."
664664
],
@@ -668,7 +668,7 @@
668668
'resource="Test_Value::"/></menu></config>',
669669
[
670670
"Element 'update', attribute 'resource': [facet 'pattern'] The value 'Test_Value::' is not " .
671-
"accepted by the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
671+
"accepted by the pattern '[A-Z]+[A-Za-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.",
672672
"Element 'update', attribute 'resource': 'Test_Value::' is not a valid value of the atomic " .
673673
"type 'typeResource'."
674674
],

0 commit comments

Comments
 (0)