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-import-export
Test
Unit
Model
Import
Config
_files
invalidImportMergedXmlArray.php
Go to the documentation of this file.
1
<?php
6
return
[
7
'entity_without_required_name'
=> [
8
'<?xml version="1.0"?><config><entity label="test" model="test" behaviorModel="test" /></config>'
,
9
[
"Element 'entity': The attribute 'name' is required but missing.\nLine: 1\n"
],
10
],
11
'entity_without_required_label'
=> [
12
'<?xml version="1.0"?><config><entity name="test_name" model="test" behaviorModel="test" /></config>'
,
13
[
"Element 'entity': The attribute 'label' is required but missing.\nLine: 1\n"
],
14
],
15
'entity_without_required_behaviormodel'
=> [
16
'<?xml version="1.0"?><config><entity name="test_name" label="test_label" model="test" /></config>'
,
17
[
"Element 'entity': The attribute 'behaviorModel' is required but missing.\nLine: 1\n"
],
18
],
19
'entity_without_required_model'
=> [
20
'<?xml version="1.0"?><config><entity name="test_name" label="test_label" behaviorModel="test" /></config>'
,
21
[
"Element 'entity': The attribute 'model' is required but missing.\nLine: 1\n"
],
22
],
23
'entity_with_notallowed_atrribute'
=> [
24
'<?xml version="1.0"?><config><entity name="test_name" label="test_label" '
.
25
'model="test" behaviorModel="test" notallowed="text" /></config>'
,
26
[
"Element 'entity', attribute 'notallowed': The attribute 'notallowed' is not allowed.\nLine: 1\n"
],
27
],
28
'entity_model_with_invalid_value'
=> [
29
'<?xml version="1.0"?><config><entity name="test_name" label="test_label" model="afwer34" '
.
30
'behaviorModel="test" /></config>'
,
31
[
32
"Element 'entity', attribute 'model': [facet 'pattern'] The value 'afwer34' is not "
.
33
"accepted by the pattern '[A-Za-z_\\\\]+'.\nLine: 1\n"
,
34
"Element 'entity', attribute 'model': 'afwer34' is not a valid value of the atomic type"
.
35
" 'modelName'.\nLine: 1\n"
36
],
37
],
38
'entity_behaviorModel_with_invalid_value'
=> [
39
'<?xml version="1.0"?><config><entity name="test_name" label="test_label" model="test" behaviorModel="666" />'
.
40
'</config>'
,
41
[
42
"Element 'entity', attribute 'behaviorModel': [facet 'pattern'] The value '666' is not accepted by "
.
43
"the pattern '[A-Za-z_\\\\]+'.\nLine: 1\n"
,
44
"Element 'entity', attribute 'behaviorModel': '666' is not a valid value of the atomic type"
.
45
" 'modelName'.\nLine: 1\n"
46
],
47
]
48
];