File tree 1 file changed +17
-1
lines changed
tests/unit/Mage/Core/Helper
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -239,6 +239,15 @@ public function envAsArrayDataProvider(): Generator
239
239
],
240
240
]
241
241
];
242
+ yield 'storeScope ' => [
243
+ [
244
+ 'env_path ' => 'OPENMAGE_CONFIG__STORES__GERMAN__GENERAL__STORE_INFORMATION__NAME ' ,
245
+ 'scope ' => 'stores ' ,
246
+ 'expected ' => [
247
+ 'general/store_information/name ' => 1 ,
248
+ ],
249
+ ]
250
+ ];
242
251
yield 'invalidScope ' => [
243
252
[
244
253
'env_path ' => '' ,
@@ -270,13 +279,20 @@ public function testHasPath(array $config): void
270
279
271
280
public function envHasPathDataProvider (): Generator
272
281
{
273
- yield 'hasPath ' => [
282
+ yield 'hasPath default ' => [
274
283
[
275
284
'env_path ' => 'OPENMAGE_CONFIG__DEFAULT__GENERAL__STORE_INFORMATION__NAME ' ,
276
285
'xml_path ' => 'default/general/store_information/name ' ,
277
286
'expected ' => true ,
278
287
]
279
288
];
289
+ yield 'hasPath store ' => [
290
+ [
291
+ 'env_path ' => 'OPENMAGE_CONFIG__STORES__GERMAN__GENERAL__STORE_INFORMATION__NAME ' ,
292
+ 'xml_path ' => 'stores/general/store_information/name ' ,
293
+ 'expected ' => true ,
294
+ ]
295
+ ];
280
296
yield 'hasNotPath ' => [
281
297
[
282
298
'env_path ' => 'OPENMAGE_CONFIG__DEFAULT__GENERAL__STORE_INFORMATION__NAME ' ,
You can’t perform that action at this time.
0 commit comments