Skip to content

Commit

Permalink
Refactoring config fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazar65 committed Jan 7, 2020
1 parent 5e6c595 commit f30a06a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@ public function getFieldPaths(): array
],
'field_5' => [
'field_5',
],
'section_3' => ['section_3']
'field_5'
]
]
]
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
'id' => 'field_3_1_1',
'translate' => 'label',
'showInWebsite' => '1',
'backend_model' => \Magento\Config\Model\Config\Backend\Encrypted::class,
'backend_model' =>
\Magento\Config\Model\Config\Backend\Encrypted::class,
'type' => 'text',
'label' => 'Field 3.1.1',
'_elementType' => 'field',
Expand Down Expand Up @@ -192,9 +193,26 @@
'section_3' => [
'id' => 'section_3',
'type' => 'text',
'tab' => 'tab_1',
'_elementType' => 'field'
],
'_elementType' => 'section',
'children' => [
'group_5' => [
'id' => 'group_5',
'type' => 'text',
'showInDefault' => 1,
'showInWebsite' => 1,
'showInStore' => 1,
'_elementType' => 'group',
'children' => [
'field_5' => [
'id' => 'field_5',
'showInWebsite' => '1',
'type' => 'text',
'_elementType' => 'field',
]
]
]
]
]
],
],
],
Expand Down
6 changes: 6 additions & 0 deletions app/code/Magento/Config/Test/Unit/Model/_files/system_2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,11 @@
</depends>
</group>
</section>
<section id="section_3" type="text">
<group id="group_5" type="text" showInDefault="1" showInWebsite="1" showInStore="1">
<field id="field_5" showInWebsite="1" type="text">
</field>
</group>
</section>
</system>
</config>

0 comments on commit f30a06a

Please sign in to comment.