File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
lib/internal/Magento/Framework/Indexer/Test/Unit/_files Expand file tree Collapse file tree 2 files changed +15
-1
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 >
You can’t perform that action at this time.
0 commit comments