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 testSchemaUsingInvalidXml($expectedErrors = null)
 {
     $expectedErrors = ["Element 'type': The attribute 'id' is required but missing.", "Element 'type': Missing child element(s). Expected is ( label ).", "Element 'group': The attribute 'id' is required but missing.", "Element 'group': Missing child element(s). Expected is ( label )."];
     parent::testSchemaUsingInvalidXml($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);
 }
 /**
  * @param null $expectedErrors
  */
 public function testSchemaUsingInvalidXml($expectedErrors = null)
 {
     $expectedErrors = array_filter(explode("\n", "\nNo match found for key-sequence ['suggested_search_container'] of keyref 'requestQueryReference'.\nElement 'queryReference': No match found for key-sequence ['fulltext_search_query4'] of keyref 'queryReference'.\n"));
     parent::testSchemaUsingInvalidXml($expectedErrors);
 }
Example #7
0
 public function testSchemaUsingInvalidXml($expectedErrors = null)
 {
     $expectedErrors = array("Element 'layouts': No match found for key-sequence ['bad_ref'] of keyref 'layout-ref'.", "Element 'layout': Missing child element(s). Expected is ( label ).");
     parent::testSchemaUsingInvalidXml($expectedErrors);
 }
 /**
  * @param null $expectedErrors
  */
 public function testSchemaUsingInvalidXml($expectedErrors = null)
 {
     $expectedErrors = array_filter(explode("\n", "\nElement 'feature': The attribute 'support' is required but missing.\nElement 'wrong': This element is not expected. Expected is ( feature ).\nElement 'feature': The attribute 'name' is required but missing.\nElement 'engine', attribute 'wrong': The attribute 'wrong' is not allowed.\nElement 'engine': The attribute 'name' is required but missing.\nElement 'feature', attribute 'support': 'wrong' is not a valid value of the atomic type 'xs:boolean'.\n"));
     parent::testSchemaUsingInvalidXml($expectedErrors);
 }