File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
app/code/Magento/Config/Test/Unit/Model Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ public function getFieldPathsByAttributeDataProvider()
321
321
public function testGetFieldPaths ()
322
322
{
323
323
$ expected = [
324
- 'config_path_2 ' => [
324
+ 'section/group/field2 ' => [
325
325
'field_2 '
326
326
],
327
327
'field_3 ' => [
@@ -333,7 +333,7 @@ public function testGetFieldPaths()
333
333
'field_3_1_1 ' => [
334
334
'field_3_1_1 '
335
335
],
336
- 'config_path_4 ' => [
336
+ 'section/group/field4 ' => [
337
337
'field_4 ' ,
338
338
],
339
339
'field_5 ' => [
Original file line number Diff line number Diff line change 29
29
'children ' => [
30
30
'field_2 ' => [
31
31
'id ' => 'field_2 ' ,
32
- 'config_path ' => 'config_path_2 ' ,
32
+ 'config_path ' => 'section/group/field2 ' ,
33
33
'translate ' => 'label ' ,
34
34
'showInWebsite ' => '1 ' ,
35
35
'type ' => 'text ' ,
134
134
],
135
135
'field_4 ' => [
136
136
'id ' => 'field_4 ' ,
137
- 'config_path ' => 'config_path_4 ' ,
137
+ 'config_path ' => 'section/group/field4 ' ,
138
138
'translate ' => 'label ' ,
139
139
'showInWebsite ' => '1 ' ,
140
140
'type ' => 'text ' ,
Original file line number Diff line number Diff line change 18
18
<field id =" field_2" translate =" label" showInWebsite =" 1" type =" text" >
19
19
<label >Field 2</label >
20
20
<backend_model >Magento\Config\Model\Config\Backend\Encrypted</backend_model >
21
+ <config_path >section/group/field2</config_path >
21
22
</field >
22
23
</group >
23
24
<group id =" group_level_1" type =" text" >
70
71
</attribute >
71
72
<depends >
72
73
<field id =" field_3" >0</field >
74
+
73
75
</depends >
76
+ <config_path >section/group/field4</config_path >
74
77
</field >
75
78
<field id =" field_5" translate =" label" showInWebsite =" 1" type =" text" >
76
79
<label ></label >
You can’t perform that action at this time.
0 commit comments