File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed
lib/internal/Magento/Framework/Indexer Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 21
21
'<title>Test</title><description>Test</description></indexer></config> ' ,
22
22
["Element 'indexer': The attribute 'view_id' is required but missing. \nLine: 1 \n" ],
23
23
],
24
+ 'indexer_with_wrong_class_name ' => [
25
+ '<?xml version="1.0"?><config><indexer id="somename" view_id="view_01" class="Class+\Name"> ' .
26
+ '<title>Test</title><description>Test</description></indexer></config> ' ,
27
+ [
28
+ "Element 'indexer', attribute 'class': [facet 'pattern'] The value 'Class+\Name' "
29
+ . "is not accepted by the pattern '[a-zA-Z| \\\\]+[a-zA-Z0-9 \\\\]+'. \nLine: 1 \n" ,
30
+ "Element 'indexer', attribute 'class': 'Class+\Name' is not a valid value of the atomic type 'classType'. "
31
+ . "\nLine: 1 \n"
32
+ ],
33
+ ],
24
34
'indexer_duplicate_view_attribute ' => [
25
35
'<?xml version="1.0"?><config><indexer id="somename" view_id="view_01" class="Class\Name"> ' .
26
36
'<title>Test</title><description>Test</description></indexer> ' .
Original file line number Diff line number Diff line change 10
10
<title translate =" true" >Indexer public name</title >
11
11
<description translate =" true" >Indexer public description</description >
12
12
</indexer >
13
- <indexer id =" new_indexer_internal_name" view_id =" view02" class =" Some\Class\Name" >
13
+ <indexer id =" second_indexer_internal_name" view_id =" view02" class =" Some\Class\Name" >
14
+ <title translate =" true" >Indexer public name</title >
15
+ <description translate =" true" >Indexer public description</description >
16
+ </indexer >
17
+ <indexer id =" third_indexer_internal_name" view_id =" view03" class =" Some1\Class\Name" >
14
18
<title translate =" true" >Indexer public name</title >
15
19
<description translate =" true" >Indexer public description</description >
16
20
</indexer >
Original file line number Diff line number Diff line change 57
57
<xs : simpleType name =" classType" >
58
58
<xs : annotation >
59
59
<xs : documentation >
60
- Class name can contain only [a-zA-Z\] .
60
+ Class name can contain only [a-zA-Z|\\]+[a-zA-Z0-9\\]+ .
61
61
</xs : documentation >
62
62
</xs : annotation >
63
63
<xs : restriction base =" xs:string" >
64
- <xs : pattern value =" [a-zA-Z\\]+" />
64
+ <xs : pattern value =" [a-zA-Z| \\]+[a-zA-Z0-9\\]+ " />
65
65
</xs : restriction >
66
66
</xs : simpleType >
67
67
You can’t perform that action at this time.
0 commit comments