File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
tests/unit/Mage/Core/Helper Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -229,6 +229,15 @@ public function envAsArrayDataProvider(): Generator
229
229
],
230
230
]
231
231
];
232
+ yield 'storeScope ' => [
233
+ [
234
+ 'env_path ' => 'OPENMAGE_CONFIG__STORES__GERMAN__GENERAL__STORE_INFORMATION__NAME ' ,
235
+ 'scope ' => 'stores ' ,
236
+ 'expected ' => [
237
+ 'general/store_information/name ' => 1 ,
238
+ ],
239
+ ]
240
+ ];
232
241
yield 'invalidScope ' => [
233
242
[
234
243
'env_path ' => '' ,
@@ -260,13 +269,20 @@ public function testHasPath(array $config): void
260
269
261
270
public function envHasPathDataProvider (): Generator
262
271
{
263
- yield 'hasPath ' => [
272
+ yield 'hasPath default ' => [
264
273
[
265
274
'env_path ' => 'OPENMAGE_CONFIG__DEFAULT__GENERAL__STORE_INFORMATION__NAME ' ,
266
275
'xml_path ' => 'default/general/store_information/name ' ,
267
276
'expected ' => true ,
268
277
]
269
278
];
279
+ yield 'hasPath store ' => [
280
+ [
281
+ 'env_path ' => 'OPENMAGE_CONFIG__STORES__GERMAN__GENERAL__STORE_INFORMATION__NAME ' ,
282
+ 'xml_path ' => 'stores/general/store_information/name ' ,
283
+ 'expected ' => true ,
284
+ ]
285
+ ];
270
286
yield 'hasNotPath ' => [
271
287
[
272
288
'env_path ' => 'OPENMAGE_CONFIG__DEFAULT__GENERAL__STORE_INFORMATION__NAME ' ,
You can’t perform that action at this time.
0 commit comments