File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed
app/code/Magento/Config/etc
dev/tests/integration/testsuite/Magento/Deploy Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 183
183
<virtualType name =" appDumpSystemSource" type =" Magento\Config\App\Config\Source\DumpConfigSourceAggregated" >
184
184
<arguments >
185
185
<argument name =" sources" xsi : type =" array" >
186
+ <item name =" modular" xsi : type =" array" >
187
+ <item name =" source" xsi : type =" object" >Magento\Config\App\Config\Source\ModularConfigSource</item >
188
+ <item name =" sortOrder" xsi : type =" string" >10</item >
189
+ </item >
186
190
<item name =" dynamic" xsi : type =" array" >
187
191
<item name =" source" xsi : type =" object" >Magento\Config\App\Config\Source\RuntimeConfigSource</item >
188
192
<item name =" sortOrder" xsi : type =" string" >100</item >
Original file line number Diff line number Diff line change @@ -79,6 +79,23 @@ public function setUp()
79
79
// Snapshot of configuration.
80
80
$ this ->config = $ this ->loadConfig ();
81
81
$ this ->envConfig = $ this ->loadEnvConfig ();
82
+
83
+ $ this ->writer ->saveConfig (
84
+ [
85
+ ConfigFilePool::APP_CONFIG => [
86
+ 'system ' => [
87
+ 'default ' => [
88
+ 'web ' => [
89
+ 'test ' => [
90
+ 'test_value_3 ' => 'value from the file '
91
+ ]
92
+ ]
93
+ ]
94
+ ]
95
+ ]
96
+ ],
97
+ true
98
+ );
82
99
}
83
100
84
101
/**
@@ -197,6 +214,13 @@ private function validateSystemSection(array $config)
197
214
$ this ->assertArrayNotHasKey ('test_sensitive_environment5 ' , $ config ['system ' ]['default ' ]['web ' ]['test ' ]);
198
215
$ this ->assertArrayNotHasKey ('test_sensitive_environment6 ' , $ config ['system ' ]['default ' ]['web ' ]['test ' ]);
199
216
$ this ->assertArrayNotHasKey ('test_environment9 ' , $ config ['system ' ]['default ' ]['web ' ]['test ' ]);
217
+
218
+ $ this ->assertEquals ('value from the file ' , $ config ['system ' ]['default ' ]['web ' ]['test ' ]['test_value_3 ' ]);
219
+ $ this ->assertEquals ('GB ' , $ config ['system ' ]['default ' ]['general ' ]['country ' ]['default ' ]);
220
+ $ this ->assertEquals (
221
+ 'HK,IE,MO,PA,GB ' ,
222
+ $ config ['system ' ]['default ' ]['general ' ]['country ' ]['optional_zip_countries ' ]
223
+ );
200
224
}
201
225
202
226
/**
Original file line number Diff line number Diff line change 8
8
'' => [
9
9
'web/test/test_value_1 ' => 'http://local2.test/ ' ,
10
10
'web/test/test_value_2 ' => 5 ,
11
+ 'web/test/test_value_3 ' => 'value from the DB ' ,
11
12
'web/test/test_sensitive ' => 10 ,
13
+ 'general/country/default ' => 'GB ' ,
12
14
13
15
'web/test/test_sensitive1 ' => 'some_value1 ' ,
14
16
'web/test/test_sensitive2 ' => 'some_value2 ' ,
You can’t perform that action at this time.
0 commit comments