From 578e4199b544f89722c4b90984cea6309a241134 Mon Sep 17 00:00:00 2001 From: Sam Tay Date: Sun, 21 Jun 2015 14:34:17 -0400 Subject: [PATCH] update test error messages for new xsd schema --- .../Model/Config/_files/invalidSystemXmlArray.php | 2 +- .../Resource/Config/_files/invalidAclXmlArray.php | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) 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 88b585f57fb72..45b4d43d88e7b 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 @@ -118,7 +118,7 @@ "Element 'resource': [facet 'minLength'] The value has a length of '4'; this underruns the allowed " . "minimum length of '8'.", "Element 'resource': [facet 'pattern'] The value 'One:' is not accepted by the " . - "pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.", + "pattern '([A-Z]+[a-z0-9]{1,}){1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.", "Element 'resource': 'One:' is not " . "a valid value of the atomic type 'typeAclResourceId'." ], ], diff --git a/lib/internal/Magento/Framework/Acl/Test/Unit/Resource/Config/_files/invalidAclXmlArray.php b/lib/internal/Magento/Framework/Acl/Test/Unit/Resource/Config/_files/invalidAclXmlArray.php index 57b0896342a02..02f6ac94e2f14 100644 --- a/lib/internal/Magento/Framework/Acl/Test/Unit/Resource/Config/_files/invalidAclXmlArray.php +++ b/lib/internal/Magento/Framework/Acl/Test/Unit/Resource/Config/_files/invalidAclXmlArray.php @@ -49,7 +49,7 @@ '', [ "Element 'resource', attribute 'id': [facet 'pattern'] The value 'test_Value::show_toolbar' is " . - "not accepted by the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.", + "not accepted by the pattern '([A-Z]+[a-z0-9]{1,}){1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.", "Element 'resource', attribute 'id': 'test_Value::show_toolbar' is not a valid value of the atomic type " . "'typeId'.", "Element 'resource', attribute 'id': Warning: No precomputed value available, " . @@ -62,7 +62,7 @@ '', [ "Element 'resource', attribute 'id': [facet 'pattern'] The value 'Test_value::show_toolbar' is not " . - "accepted by the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.", + "accepted by the pattern '([A-Z]+[a-z0-9]{1,}){1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.", "Element 'resource', attribute 'id': 'Test_value::show_toolbar' is not a valid value of the atomic type " . "'typeId'.", "Element 'resource', attribute 'id': Warning: No precomputed value available, " . @@ -75,7 +75,7 @@ '', [ "Element 'resource', attribute 'id': [facet 'pattern'] The value 'M@#$%^*_Value::show_toolbar' is not " . - "accepted by the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.", + "accepted by the pattern '([A-Z]+[a-z0-9]{1,}){1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.", "Element 'resource', attribute 'id': 'M@#$%^*_Value::show_toolbar' " . "is not a valid value of the atomic type " . "'typeId'.", @@ -89,7 +89,7 @@ '', [ "Element 'resource', attribute 'id': [facet 'pattern'] The value '_Value::show_toolbar' is not " . - "accepted by the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.", + "accepted by the pattern '([A-Z]+[a-z0-9]{1,}){1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.", "Element 'resource', attribute 'id': '_Value::show_toolbar' " . "is not a valid value of the atomic type 'typeId'.", "Element 'resource', attribute 'id': " . @@ -102,7 +102,7 @@ '', [ "Element 'resource', attribute 'id': [facet 'pattern'] The value 'Value_::show_toolbar' is not " . - "accepted by the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.", + "accepted by the pattern '([A-Z]+[a-z0-9]{1,}){1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.", "Element 'resource', attribute 'id': 'Value_::show_toolbar' " . "is not a valid value of the atomic type 'typeId'.", "Element 'resource', attribute 'id': " . @@ -115,7 +115,7 @@ '', [ "Element 'resource', attribute 'id': [facet 'pattern'] The value 'Test_value:show_toolbar' is not " . - "accepted by the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.", + "accepted by the pattern '([A-Z]+[a-z0-9]{1,}){1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.", "Element 'resource', attribute 'id': 'Test_value:show_toolbar' is not a valid value of the atomic " . "type 'typeId'.", "Element 'resource', attribute 'id': " . @@ -127,7 +127,7 @@ '' . '', [ "Element 'resource', attribute 'id': [facet 'pattern'] The value 'Test_Value::' is not accepted by " . - "the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.", + "the pattern '([A-Z]+[a-z0-9]{1,}){1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.", "Element 'resource', attribute 'id': 'Test_Value::' is not a valid value of the atomic type 'typeId'.", "Element 'resource', attribute 'id': " . "Warning: No precomputed value available, the value was either invalid " .