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
framework
Mview
Test
Unit
_files
invalidMviewXmlArray.php
Go to the documentation of this file.
1
<?php
6
return
[
7
'without_mview_handle'
=> [
8
'<?xml version="1.0"?><config></config>'
,
9
[
"Element 'config': Missing child element(s). Expected is ( view ).\nLine: 1\n"
],
10
],
11
'mview_with_notallowed_attribute'
=> [
12
'<?xml version="1.0" encoding="UTF-8"?><config>'
.
13
'<view id="view_one" notallow="notallow" class="Ogogo\Class\One" group="some_view_group">'
.
14
'<subscriptions><table name="some_entity" entity_column="entity_id" /></subscriptions></view></config>'
,
15
[
"Element 'view', attribute 'notallow': The attribute 'notallow' is not allowed.\nLine: 1\n"
],
16
],
17
'mview_without_class_attribute'
=> [
18
'<?xml version="1.0" encoding="UTF-8"?><config><view id="view_one" group="some_view_group"><subscriptions>'
.
19
'<table name="some_entity" entity_column="entity_id" /></subscriptions></view></config>'
,
20
[
"Element 'view': The attribute 'class' is required but missing.\nLine: 1\n"
],
21
],
22
'mview_without_group_attribute'
=> [
23
'<?xml version="1.0" encoding="UTF-8"?><config><view id="view_one" class="Ogogo\Class\One"><subscriptions>'
.
24
'<table name="some_entity" entity_column="entity_id" /></subscriptions></view></config>'
,
25
[
"Element 'view': The attribute 'group' is required but missing.\nLine: 1\n"
],
26
],
27
'mview_with_empty_subscriptions'
=> [
28
'<?xml version="1.0" encoding="UTF-8"?><config>'
.
29
'<view id="view_one" class="Ogogo\Class\One" group="some_view_group"><subscriptions>'
.
30
'</subscriptions></view></config>'
,
31
[
"Element 'subscriptions': Missing child element(s). Expected is ( table ).\nLine: 1\n"
],
32
],
33
'subscriptions_without_table'
=> [
34
'<?xml version="1.0" encoding="UTF-8"?><config>'
.
35
'<view id="view_one" class="Ogogo\Class\One" group="some_view_group"><subscriptions>'
.
36
'</subscriptions></view></config>'
,
37
[
"Element 'subscriptions': Missing child element(s). Expected is ( table ).\nLine: 1\n"
],
38
],
39
'table_without_column_attribute'
=> [
40
'<?xml version="1.0" encoding="UTF-8"?><config>'
.
41
'<view id="view_one" class="Ogogo\Class\One" group="some_view_group"><subscriptions>'
.
42
'<table name="some_entity" /></subscriptions></view></config>'
,
43
[
"Element 'table': The attribute 'entity_column' is required but missing.\nLine: 1\n"
],
44
],
45
'subscriptions_duplicate_table'
=> [
46
'<?xml version="1.0" encoding="UTF-8"?><config>'
.
47
'<view id="view_one" class="Ogogo\Class\One" group="some_view_group"><subscriptions>'
.
48
'<table name="some_entity" entity_column="entity_id" />'
.
49
'<table name="some_entity" entity_column="entity_id" /></subscriptions></view></config>'
,
50
[
51
"Element 'table': Duplicate key-sequence ['some_entity', 'entity_id'] in unique identity-constraint "
.
52
"'uniqueSubscriptionsTable'.\nLine: 1\n"
53
],
54
]
55
];