diff --git a/app/code/Magento/Catalog/Test/Unit/Model/ProductOptions/Config/_files/invalidProductOptionsXmlArray.php b/app/code/Magento/Catalog/Test/Unit/Model/ProductOptions/Config/_files/invalidProductOptionsXmlArray.php
index b6f5fdfef134..c5dd592176c6 100644
--- a/app/code/Magento/Catalog/Test/Unit/Model/ProductOptions/Config/_files/invalidProductOptionsXmlArray.php
+++ b/app/code/Magento/Catalog/Test/Unit/Model/ProductOptions/Config/_files/invalidProductOptionsXmlArray.php
@@ -44,7 +44,8 @@
'',
[
- "Element 'option', attribute 'renderer': '123true' is not a valid value of the atomic type 'modelName'.\n" .
+ "Element 'option', attribute 'renderer': [facet 'pattern'] The value '123true' is not accepted " .
+ "by the pattern '([\\\]?[a-zA-Z_][a-zA-Z0-9_]*)+'.\n" .
"Line: 1\nThe xml was: \n0:\n1:\n2:\n"
],
diff --git a/app/code/Magento/Catalog/Test/Unit/Model/ProductTypes/Config/_files/invalidProductTypesXmlArray.php b/app/code/Magento/Catalog/Test/Unit/Model/ProductTypes/Config/_files/invalidProductTypesXmlArray.php
index 88d950104bfb..9bc8f5451b37 100644
--- a/app/code/Magento/Catalog/Test/Unit/Model/ProductTypes/Config/_files/invalidProductTypesXmlArray.php
+++ b/app/code/Magento/Catalog/Test/Unit/Model/ProductTypes/Config/_files/invalidProductTypesXmlArray.php
@@ -32,7 +32,8 @@
'type_modelinstance_invalid_value' => [
'',
[
- "Element 'type', attribute 'modelInstance': '123' is not a valid value of the atomic type 'modelName'.\n" .
+ "Element 'type', attribute 'modelInstance': [facet 'pattern'] The value '123' is not " .
+ "accepted by the pattern '([\\\]?[a-zA-Z_][a-zA-Z0-9_]*)+'.\n" .
"Line: 1\nThe xml was: \n0:\n1:\n2:\n"
],
@@ -71,16 +72,18 @@
'type_pricemodel_instance_invalid_value' => [
'',
[
- "Element 'priceModel', attribute 'instance': '123123' is not a valid value of the atomic " .
- "type 'modelName'.\nLine: 1\nThe xml was: \n0:\n1:\n1:\n2:\n"
],
],
'type_indexermodel_instance_invalid_value' => [
'',
[
- "Element 'indexerModel', attribute 'instance': '123' is not a valid value of the atomic type " .
- "'modelName'.\nLine: 1\nThe xml was: \n0:\n1:\n1:\n2:\n"
],
],
@@ -102,8 +105,9 @@
'stockindexermodel_instance_invalid_value' => [
'',
[
- "Element 'stockIndexerModel', attribute 'instance': '1234' is not a valid value of the atomic type " .
- "'modelName'.\nLine: 1\nThe xml was: \n0:\n1:\n1:\n2:\n"
],
],
diff --git a/app/code/Magento/Config/Test/Unit/Model/Config/_files/invalidSystemXmlArray.php b/app/code/Magento/Config/Test/Unit/Model/Config/_files/invalidSystemXmlArray.php
index 82e25361b0e5..eef006ea054d 100644
--- a/app/code/Magento/Config/Test/Unit/Model/Config/_files/invalidSystemXmlArray.php
+++ b/app/code/Magento/Config/Test/Unit/Model/Config/_files/invalidSystemXmlArray.php
@@ -90,7 +90,8 @@
"1:co\n2:\n",
- "Element 'config_path': 'co' is not a valid value of the atomic type 'typeConfigPath'.\nLine: 1\n" .
+ "Element 'config_path': [facet 'minLength'] The value has a length of '2'; " .
+ "this underruns the allowed minimum length of '5'.\nLine: 1\n" .
"The xml was: \n0:\n1:co" .
"\n2:\n"
@@ -107,7 +108,8 @@
"1:Som" .
"\n2:\n",
- "Element 'if_module_enabled': 'Som' is not a valid value of the atomic type 'typeModule'.\n" .
+ "Element 'if_module_enabled': [facet 'minLength'] The value has a length of '3'; " .
+ "this underruns the allowed minimum length of '5'.\n" .
"Line: 1\nThe xml was: \n0:\n1:" .
"Som" .
"" .
diff --git a/app/code/Magento/Directory/Test/Unit/Model/CurrencyTest.php b/app/code/Magento/Directory/Test/Unit/Model/CurrencyTest.php
index 2125fb9bd5be..a38842992dc0 100644
--- a/app/code/Magento/Directory/Test/Unit/Model/CurrencyTest.php
+++ b/app/code/Magento/Directory/Test/Unit/Model/CurrencyTest.php
@@ -138,16 +138,12 @@ function (array $args) {
*/
public function getOutputFormatDataProvider(): array
{
- $ar_DZ = "\u{062C}.\u{0645}.\u{200F}\u{00A0}%s";
- if (version_compare(PHP_VERSION, '8.3', '>=')) {
- $ar_DZ = "%s\u{00A0}\u{062C}.\u{0645}.\u{200F}";
- }
return [
'en_US:USD' => ['en_US', 'USD', '$%s'],
'en_US:PLN' => ['en_US', 'PLN', "PLN\u{00A0}%s"],
'en_US:PKR' => ['en_US', 'PKR', "PKR\u{00A0}%s"],
'af_ZA:VND' => ['af_ZA', 'VND', "\u{20AB}%s"],
- 'ar_DZ:EGP' => ['ar_DZ', 'EGP', $ar_DZ],
+ 'ar_DZ:EGP' => ['ar_DZ', 'EGP', "%s\u{00A0}\u{062C}.\u{0645}.\u{200F}"],
'ar_SA:USD' => ['ar_SA', 'USD', "%s\u{00A0}US$"],
'ar_SA:LBP' => ['ar_SA', 'LBP', "%s\u{00A0}\u{0644}.\u{0644}.\u{200F}"],
'fa_IR:USD' => ['fa_IR', 'USD', "\u{200E}$%s"],
diff --git a/app/code/Magento/Email/Test/Unit/Model/Template/Config/XsdTest.php b/app/code/Magento/Email/Test/Unit/Model/Template/Config/XsdTest.php
index 4f025ae10627..12df47759892 100644
--- a/app/code/Magento/Email/Test/Unit/Model/Template/Config/XsdTest.php
+++ b/app/code/Magento/Email/Test/Unit/Model/Template/Config/XsdTest.php
@@ -143,8 +143,9 @@ public function mergedXmlDataProvider()
'node "template" with invalid attribute "area"' => [
'',
[
- "Element 'template', attribute 'area': 'invalid' is not a valid value of the atomic type " .
- "'areaType'.The xml was: \n0:\n1:\n1:" .
"\n2:\n",
],
diff --git a/app/code/Magento/ImportExport/Test/Unit/Model/Export/Config/_files/invalidExportXmlArray.php b/app/code/Magento/ImportExport/Test/Unit/Model/Export/Config/_files/invalidExportXmlArray.php
index 3ee7e4b64638..90e68dbd7d59 100644
--- a/app/code/Magento/ImportExport/Test/Unit/Model/Export/Config/_files/invalidExportXmlArray.php
+++ b/app/code/Magento/ImportExport/Test/Unit/Model/Export/Config/_files/invalidExportXmlArray.php
@@ -26,17 +26,14 @@
],
'attributes_with_type_modelName_and_invalid_value' => [
''
- . ' ',
+ . 'entityAttributeFilterType="model_one"/>'
+ . ' ',
[
- "Element 'entityType', attribute 'model': '1' is not a valid value of the atomic type 'modelName'.\n" .
- "Line: 1\nThe xml was: \n0:\n1:\n2:\n",
- "Element 'fileFormat', attribute 'model': '1model' is not a valid value of the atomic type 'modelName'.\n" .
- "Line: 1\nThe xml was: \n0:\n1:\n2:\n"
+ "Element 'fileFormat', attribute 'model': [facet 'pattern'] The value '1model'" .
+ " is not accepted by the pattern '([\\\\]?[a-zA-Z_][a-zA-Z0-9_]*)+'.\n" .
+ "Line: 1\nThe xml was: \n0:\n1:\n2:\n"
],
],
'productType_node_with_required_attribute' => [
diff --git a/app/code/Magento/ImportExport/Test/Unit/Model/Import/Config/_files/invalidImportMergedXmlArray.php b/app/code/Magento/ImportExport/Test/Unit/Model/Import/Config/_files/invalidImportMergedXmlArray.php
index 3675f012c503..7064e7a18414 100644
--- a/app/code/Magento/ImportExport/Test/Unit/Model/Import/Config/_files/invalidImportMergedXmlArray.php
+++ b/app/code/Magento/ImportExport/Test/Unit/Model/Import/Config/_files/invalidImportMergedXmlArray.php
@@ -51,7 +51,8 @@
'',
[
- "Element 'entity', attribute 'model': '34afwer' is not a valid value of the atomic type 'modelName'.\n" .
+ "Element 'entity', attribute 'model': [facet 'pattern'] The value '34afwer'" .
+ " is not accepted by the pattern '([\\\\]?[a-zA-Z_][a-zA-Z0-9_]*)+'.\n" .
"Line: 1\nThe xml was: \n0:\n1:\n2:\n"
],
@@ -60,8 +61,9 @@
'' .
'',
[
- "Element 'entity', attribute 'behaviorModel': '666' is not a valid value of the atomic type " .
- "'modelName'.\nLine: 1\nThe xml was: \n0:\n1:\n1:\n2:\n"
],
]
diff --git a/app/code/Magento/ImportExport/Test/Unit/Model/Import/Config/_files/invalidImportXmlArray.php b/app/code/Magento/ImportExport/Test/Unit/Model/Import/Config/_files/invalidImportXmlArray.php
index e35eca06f2fd..fa731b890ce9 100644
--- a/app/code/Magento/ImportExport/Test/Unit/Model/Import/Config/_files/invalidImportXmlArray.php
+++ b/app/code/Magento/ImportExport/Test/Unit/Model/Import/Config/_files/invalidImportXmlArray.php
@@ -24,17 +24,18 @@
'entity_with_invalid_model_value' => [
'',
[
- "Element 'entity', attribute 'model': '12345' is not a valid value of the atomic type 'modelName'.\n" .
- "Line: 1\nThe xml was: \n0:\n1:\n2:\n"
-
+ "Element 'entity', attribute 'model': [facet 'pattern'] The value '12345' is not accepted " .
+ "by the pattern '([\\\\]?[a-zA-Z_][a-zA-Z0-9_]*)+'.\n" .
+ "Line: 1\nThe xml was: \n0:\n1:\n2:\n"
],
],
'entity_with_invalid_behaviormodel_value' => [
'',
[
- "Element 'entity', attribute 'behaviorModel': '=--09' is not a valid value of the atomic type " .
- "'modelName'.\nLine: 1\nThe xml was: \n0:\n1:\n1:\n2:\n"
],
],
@@ -65,7 +66,8 @@
'entitytype_with_invalid_model_attribute_value' => [
'',
[
- "Element 'entityType', attribute 'model': '1test' is not a valid value of the atomic type 'modelName'.\n" .
+ "Element 'entityType', attribute 'model': [facet 'pattern'] The value '1test'" .
+ " is not accepted by the pattern '([\\\\]?[a-zA-Z_][a-zA-Z0-9_]*)+'.\n" .
"Line: 1\nThe xml was: \n0:\n" .
"1:\n2:\n"
],
diff --git a/app/code/Magento/Integration/Test/Unit/Model/Config/XsdTest.php b/app/code/Magento/Integration/Test/Unit/Model/Config/XsdTest.php
index 5bac267acefb..4da1a30ecc42 100644
--- a/app/code/Magento/Integration/Test/Unit/Model/Config/XsdTest.php
+++ b/app/code/Magento/Integration/Test/Unit/Model/Config/XsdTest.php
@@ -349,8 +349,9 @@ public function exemplarXmlDataProvider()
',
[
- "Element 'integration', attribute 'name': '' is not a valid value of the atomic type " .
- "'integrationNameType'.The xml was: \n0:\n1:\n" .
+ "Element 'integration', attribute 'name': [facet 'minLength'] The value '' has a " .
+ "length of '0'; this underruns the allowed minimum length of '2'.The xml was: \n" .
+ "0:\n1:\n" .
"2: \n3: " .
"test-integration1@magento.com\n4: " .
"http://endpoint.url\n5: " .
@@ -368,7 +369,8 @@ public function exemplarXmlDataProvider()
',
[
- "Element 'email': 'invalid' is not a valid value of the atomic type 'emailType'.The xml was: \n" .
+ "Element 'email': [facet 'pattern'] The value 'invalid' is not accepted by " .
+ "the pattern '[^@]+@[^\.]+\..+'.The xml was: \n" .
"0:\n1:\n2: \n3: invalid\n" .
"4: http://endpoint.url\n" .
diff --git a/app/code/Magento/Sales/Test/Unit/Model/Order/Pdf/Config/XsdTest.php b/app/code/Magento/Sales/Test/Unit/Model/Order/Pdf/Config/XsdTest.php
index 32ae440a2a4f..ef30b0f90367 100644
--- a/app/code/Magento/Sales/Test/Unit/Model/Order/Pdf/Config/XsdTest.php
+++ b/app/code/Magento/Sales/Test/Unit/Model/Order/Pdf/Config/XsdTest.php
@@ -188,7 +188,8 @@ protected function _getExemplarTestData()
'non-valid empty renderer class name' => [
'',
[
- "Element 'renderer': '' is not a valid value of the atomic type 'classNameType'.The xml was: \n" .
+ "Element 'renderer': [facet 'pattern'] The value '' is not accepted by the pattern " .
+ "'[A-Z][a-zA-Z\d]*(\\\\[A-Z][a-zA-Z\d]*)*'.The xml was: \n" .
"0:\n1:\n2:\n"
],
@@ -256,8 +257,9 @@ protected function _getExemplarTestData()
'Titlefoo' .
'a model',
[
- "Element 'model': 'a model' is not a valid value of the atomic type 'classNameType'.The xml " .
- "was: \n0:\n1:Title" .
+ "Element 'model': [facet 'pattern'] The value 'a model' is not accepted by the pattern " .
+ "'[A-Z][a-zA-Z\d]*(\\\\[A-Z][a-zA-Z\d]*)*'.The xml was: \n" .
+ "0:\n1:Title" .
"fooa model\n2:\n"
],
],
diff --git a/lib/internal/Magento/Framework/MessageQueue/Test/Unit/Consumer/Config/XsdTest.php b/lib/internal/Magento/Framework/MessageQueue/Test/Unit/Consumer/Config/XsdTest.php
index b6023d74dd21..362cd3607512 100644
--- a/lib/internal/Magento/Framework/MessageQueue/Test/Unit/Consumer/Config/XsdTest.php
+++ b/lib/internal/Magento/Framework/MessageQueue/Test/Unit/Consumer/Config/XsdTest.php
@@ -106,14 +106,14 @@ public function exemplarXmlDataProvider()
',
[
- "Element 'consumer', attribute 'handler': 'handlerClass_One1::handlerMethod1' is not a valid value of the atomic type 'handlerType'.The xml was: \n" .
+ "Element 'consumer', attribute 'handler': [facet 'pattern'] The value 'handlerClass_One1::handlerMethod1' is not accepted by the pattern '[a-zA-Z0-9\\\\]+::[a-zA-Z0-9]+'.The xml was: \n" .
"0:\n1:\n" .
"2: \n" .
"3: \n" .
"4: \n" .
"5: \n" .
"6: \n7: \n8:\n",
- "Element 'consumer', attribute 'handler': 'handlerClassOne2::handler_Method2' is not a valid value of the atomic type 'handlerType'.The xml was: \n" .
+ "Element 'consumer', attribute 'handler': [facet 'pattern'] The value 'handlerClassOne2::handler_Method2' is not accepted by the pattern '[a-zA-Z0-9\\\\]+::[a-zA-Z0-9]+'.The xml was: \n" .
"0:\n1:\n" .
"2: \n" .
"3: \n" .
@@ -280,13 +280,15 @@ public function exemplarQueueXmlDataProvider()
',
[
- "Element 'queue', attribute 'handler': 'handlerClass_One1::handlerMethod1' is not a valid value of the atomic type 'handlerType'.The xml was: \n" .
+ "Element 'queue', attribute 'handler': [facet 'pattern'] The value " .
+ "'handlerClass_One1::handlerMethod1' is not accepted by the pattern '[a-zA-Z0-9\\\\]+::[a-zA-Z0-9]+'.The xml was: \n" .
"0:\n1:\n" .
"2: \n" .
"3: \n" .
"4: \n" .
"5: \n6: \n7:\n",
- "Element 'queue', attribute 'handler': 'handlerClassOne2::handler_Method2' is not a valid value of the atomic type 'handlerType'.The xml was: \n" .
+ "Element 'queue', attribute 'handler': [facet 'pattern'] The value " .
+ "'handlerClassOne2::handler_Method2' is not accepted by the pattern '[a-zA-Z0-9\\\\]+::[a-zA-Z0-9]+'.The xml was: \n" .
"0:\n1:\n" .
"2: \n" .
"3: \n" .
@@ -302,13 +304,15 @@ public function exemplarQueueXmlDataProvider()
',
[
- "Element 'queue', attribute 'consumerInstance': 'consumer_Class1' is not a valid value of the atomic type 'instanceType'.The xml was: \n" .
+ "Element 'queue', attribute 'consumerInstance': [facet 'pattern'] The value 'consumer_Class1' " .
+ "is not accepted by the pattern '[a-zA-Z0-9\\\\]+'.The xml was: \n" .
"0:\n1:\n" .
"2: \n" .
"3: \n" .
"4: \n" .
"5: \n6: \n7:\n",
- "Element 'queue', attribute 'consumerInstance': 'consumerClass_2' is not a valid value of the atomic type 'instanceType'.The xml was: \n" .
+ "Element 'queue', attribute 'consumerInstance': [facet 'pattern'] The value 'consumerClass_2' " .
+ "is not accepted by the pattern '[a-zA-Z0-9\\\\]+'.The xml was: \n" .
"0:\n1:\n" .
"2: \n" .
"3: \n" .