Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
invalidExportXmlArray.php
Go to the documentation of this file.
1 <?php
6 return [
7  'export_entity_name_must_be_unique' => [
8  '<?xml version="1.0"?><config><entity name="name_one" entityAttributeFilterType="name_one"/>'
9  . '<entity name="name_one" entityAttributeFilterType="name_one"/></config>',
10  [
11  "Element 'entity': Duplicate key-sequence ['name_one'] in unique identity-constraint " .
12  "'uniqueEntityName'.\nLine: 1\n"
13  ],
14  ],
15  'export_fileFormat_name_must_be_unique' => [
16  '<?xml version="1.0"?><config><fileFormat name="name_one" /><fileFormat name="name_one" /></config>',
17  [
18  "Element 'fileFormat': Duplicate key-sequence ['name_one'] in unique identity-constraint " .
19  "'uniqueFileFormatName'.\nLine: 1\n"
20  ],
21  ],
22  'attributes_with_type_modelName_and_invalid_value' => [
23  '<?xml version="1.0"?><config><entity name="Name/one" model="model_one" '
24  . 'entityAttributeFilterType="model_one"/><entityType entity="Name/one" name="name_one" model="1"/>'
25  . ' <fileFormat name="name_one" model="model1"/></config>',
26  [
27  "Element 'entityType', attribute 'model': [facet 'pattern'] The value '1' is not accepted by the " .
28  "pattern '[A-Za-z_\\\\]+'.\nLine: 1\n",
29  "Element 'entityType', attribute 'model': '1' is not a valid value of the atomic type" .
30  " 'modelName'.\nLine: 1\n",
31  "Element 'fileFormat', attribute 'model': [facet 'pattern'] The value 'model1' is not " .
32  "accepted by the pattern '[A-Za-z_\\\\]+'.\nLine: 1\n",
33  "Element 'fileFormat', attribute 'model': 'model1' is not a valid " .
34  "value of the atomic type 'modelName'.\nLine: 1\n"
35  ],
36  ],
37  'productType_node_with_required_attribute' => [
38  '<?xml version="1.0"?><config><entityType entity="name_one" name="name_one" />'
39  . '<entityType entity="name_one" model="model" /></config>',
40  [
41  "Element 'entityType': The attribute 'model' is required but missing.\nLine: 1\n",
42  "Element 'entityType': " . "The attribute 'name' is required but missing.\nLine: 1\n"
43  ],
44  ],
45  'fileFormat_node_with_required_attribute' => [
46  '<?xml version="1.0"?><config><fileFormat label="name_one" /></config>',
47  ["Element 'fileFormat': The attribute 'name' is required but missing.\nLine: 1\n"],
48  ],
49  'entity_node_with_required_attribute' => [
50  '<?xml version="1.0"?><config><entity label="name_one" entityAttributeFilterType="name_one"/></config>',
51  ["Element 'entity': The attribute 'name' is required but missing.\nLine: 1\n"],
52  ],
53  'entity_node_with_missing_filter_type_attribute' => [
54  '<?xml version="1.0"?><config><entity label="name_one" name="name_one"/></config>',
55  ["Element 'entity': The attribute 'entityAttributeFilterType' is required but missing.\nLine: 1\n"],
56  ]
57 ];