Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-eav
Test
Unit
Model
Entity
Attribute
Config
_files
invalidEavAttributeXmlArray.php
Go to the documentation of this file.
1
<?php
6
return
[
7
'config_only_with_entity_node'
=> [
8
'<?xml version="1.0"?><config><entity type="type_one" /></config>'
,
9
[
"Element 'entity': Missing child element(s). Expected is ( attribute ).\nLine: 1\n"
],
10
],
11
'field_code_must_be_unique'
=> [
12
'<?xml version="1.0"?><config><entity type="type_one"><attribute code="code_one"><field code="code_one_one" '
.
13
'locked="true" /><field code="code_one_one" locked="true" /></attribute></entity></config>'
,
14
[
15
"Element 'field': Duplicate key-sequence ['code_one_one'] in unique identity-constraint "
.
16
"'uniqueFieldCode'.\nLine: 1\n"
17
],
18
],
19
'type_attribute_is_required'
=> [
20
'<?xml version="1.0"?><config><entity><attribute code="code_one"><field code="code_one_one" '
.
21
'locked="true" /></attribute></entity></config>'
,
22
[
"Element 'entity': The attribute 'type' is required but missing.\nLine: 1\n"
],
23
],
24
'attribute_without_required_attributes'
=> [
25
'<?xml version="1.0"?><config><entity type="name"><attribute><field code="code_one_one" '
.
26
'locked="true" /></attribute></entity></config>'
,
27
[
"Element 'attribute': The attribute 'code' is required but missing.\nLine: 1\n"
],
28
],
29
'field_node_without_required_attributes'
=> [
30
'<?xml version="1.0"?><config><entity type="name"><attribute code="code"><field code="code_one_one" />'
.
31
'<field locked="true"/></attribute></entity></config>'
,
32
[
33
"Element 'field': The attribute 'locked' is required but missing.\nLine: 1\n"
,
34
"Element 'field': The attribute "
.
"'code' is required but missing.\nLine: 1\n"
35
],
36
],
37
'locked_attribute_with_invalid_value'
=> [
38
'<?xml version="1.0"?><config><entity type="name"><attribute code="code"><field code="code_one" locked="7" />'
.
39
'<field code="code_one" locked="one_one" /></attribute></entity></config>'
,
40
[
41
"Element 'field', attribute 'locked': '7' is not a valid value of the atomic type"
.
42
" 'xs:boolean'.\nLine: 1\n"
,
43
"Element 'field', attribute 'locked': 'one_one' is not a valid value of the atomic type"
.
44
" 'xs:boolean'.\nLine: 1\n"
,
45
"Element 'field': Duplicate key-sequence ['code_one'] in unique identity-constraint"
.
46
" 'uniqueFieldCode'.\nLine: 1\n"
47
],
48
],
49
'attribute_with_type_identifierType_with_invalid_value'
=> [
50
'<?xml version="1.0"?><config><entity type="Name"><attribute code="code1"><field code="code_one" '
.
51
'locked="true" /><field code="code::one" locked="false" /></attribute></entity></config>'
,
52
[
53
"Element 'entity', attribute 'type': [facet 'pattern'] The value 'Name' is not accepted by the pattern "
.
54
"'[a-z_]+'.\nLine: 1\n"
,
55
"Element 'entity', attribute 'type': 'Name' is not a valid value of the atomic type "
.
56
"'identifierType'.\nLine: 1\n"
,
57
"Element 'entity', attribute 'type': Warning: No precomputed value available, the value"
.
58
" was either invalid or something strange happend.\nLine: 1\n"
,
59
"Element 'attribute', attribute 'code': [facet "
.
60
"'pattern'] The value 'code1' is not accepted by the pattern '[a-z_]+'.\nLine: 1\n"
,
61
"Element 'attribute', attribute "
.
62
"'code': 'code1' is not a valid value of the atomic type 'identifierType'.\nLine: 1\n"
,
63
"Element 'attribute', attribute "
.
64
"'code': Warning: No precomputed value available, "
.
65
"the value was either invalid or something strange happend.\nLine: 1\n"
,
66
"Element 'field', attribute 'code': [facet 'pattern'] "
.
67
"The value 'code::one' is not accepted by the pattern '"
.
68
"[a-z_]+'.\nLine: 1\n"
,
69
"Element 'field', attribute 'code': 'code::one' is not a valid value of the atomic type "
.
70
"'identifierType'.\nLine: 1\n"
,
71
"Element 'field', attribute 'code': Warning: No precomputed value available, the value "
.
72
"was either invalid or something strange happend.\nLine: 1\n"
73
],
74
]
75
];