Example #1
0
 public function testSchemaUsingInvalidXml($expectedErrors = null)
 {
     // @codingStandardsIgnoreStart
     $expectedErrors = ["Element 'route', attribute 'method': [facet 'enumeration'] The value 'PATCH' is not an element of the set {'GET', 'PUT', 'POST', 'DELETE'}.", "Element 'route', attribute 'method': 'PATCH' is not a valid value of the local atomic type.", "Element 'service': The attribute 'method' is required but missing.", "Element 'data': Missing child element(s). Expected is ( parameter ).", "Element 'route': Missing child element(s). Expected is ( service ).", "Element 'route': Missing child element(s). Expected is ( resources )."];
     // @codingStandardsIgnoreEnd
     parent::testSchemaUsingInvalidXml($expectedErrors);
 }
Example #2
0
 public function testSchemaUsingInvalidXml($expectedErrors = null)
 {
     // @codingStandardsIgnoreStart
     $expectedErrors = ["Element 'indexer': Duplicate key-sequence ['catalogsearch_fulltext'] in unique identity-constraint 'uniqueViewId'.", "Element 'indexer': Duplicate key-sequence ['indexer_0', 'catalogsearch_fulltext'] in unique identity-constraint 'uniqueIndexertId'.", "Element 'fields': Missing child element(s). Expected is ( field ).", "Element 'fields', attribute 'handler': [facet 'pattern'] The value 'field_handler' is not accepted by the pattern '[a-zA-Z\\\\]+'.", "Element 'fields', attribute 'handler': 'field_handler' is not a valid value of the atomic type 'classType'.", "Element 'field': Duplicate key-sequence ['visibility'] in unique identity-constraint 'uniqueField'.", "Element 'field', attribute 'origin': [facet 'pattern'] The value 'table_name_field_name' is not accepted by the pattern '[a-zA-Z0-9_]+\\.[a-zA-Z0-9_]+'.", "Element 'field', attribute 'origin': 'table_name_field_name' is not a valid value of the atomic type 'originType'.", "Element 'field': The attribute 'dataType' is required but missing.", "Element 'field', attribute '{http://www.w3.org/2001/XMLSchema-instance}type': The QName value 'any' of the xsi:type attribute does not resolve to a type definition.", "Element 'field', attribute 'dataType': [facet 'enumeration'] The value 'string' is not an element of the set {'int', 'float', 'varchar'}.", "Element 'field', attribute 'dataType': 'string' is not a valid value of the atomic type 'dataType'."];
     // @codingStandardsIgnoreEnd
     parent::testSchemaUsingInvalidXml($expectedErrors);
 }
Example #3
0
 public function testSchemaUsingPartialXml($expectedErrors = null)
 {
     $expectedErrors = ["Element 'type': The attribute 'order' is required but missing.", "Element 'type': Missing child element(s). Expected is ( label )."];
     parent::testSchemaUsingPartialXml($expectedErrors);
 }
Example #4
0
 public function testSchemaUsingInvalidXml($expectedErrors = null)
 {
     $expectedErrors = ["Element 'code': [facet 'pattern'] The value 'e_GB' is not accepted by the pattern", "Element 'code': 'e_GB' is not a valid value of the atomic type 'codeType'", "Element 'vendor': [facet 'pattern'] The value 'Magento' is not accepted by the pattern", "Element 'vendor': 'Magento' is not a valid value of the atomic type", "Element 'sort_odrer': This element is not expected. Expected is"];
     parent::testSchemaUsingInvalidXml($expectedErrors);
 }
Example #5
0
 public function testSchemaUsingInvalidXml($expectedErrors = null)
 {
     $expectedErrors = ["Element 'welcome': This element is not expected.", "Element 'models': This element is not expected."];
     parent::testSchemaUsingInvalidXml($expectedErrors);
 }
 public function testSchemaUsingValidXml()
 {
     parent::testSchemaUsingValidXml();
 }
Example #7
0
 public function testSchemaUsingPartialXml($expectedErrors = null)
 {
     $expectedErrors = array("Element 'layout': Missing child element(s). Expected is ( label ).", "Element 'layout': Missing child element(s). Expected is ( template ).", "Element 'layout': Missing child element(s). Expected is ( layout_handle ).");
     parent::testSchemaUsingPartialXml($expectedErrors);
 }