@@ -60,16 +60,16 @@ public function testEnvFilter(): void
60
60
]);
61
61
// empty because env flag is not set
62
62
$ env = $ environmentConfigLoaderHelper ->getEnv ();
63
- $ this -> assertIsArray ($ env );
64
- $ this -> assertEmpty ($ env );
63
+ static :: assertIsArray ($ env );
64
+ static :: assertEmpty ($ env );
65
65
$ environmentConfigLoaderHelper ->setEnvStore ([
66
66
'OPENMAGE_CONFIG__DEFAULT__GENERAL__STORE_INFORMATION__NAME ' => 'some_value ' ,
67
67
'OPENMAGE_CONFIG_OVERRIDE_ALLOWED ' => 1 , // enable feature
68
68
]);
69
69
// flag is set => feature is enabled
70
70
$ env = $ environmentConfigLoaderHelper ->getEnv ();
71
- $ this -> assertIsArray ($ env );
72
- $ this -> assertNotEmpty ($ env );
71
+ static :: assertIsArray ($ env );
72
+ static :: assertNotEmpty ($ env );
73
73
}
74
74
75
75
/**
@@ -215,7 +215,7 @@ public function testAsArray(array $config): void
215
215
]);
216
216
$ actual = $ loader ->getAsArray ($ config ['scope ' ]);
217
217
$ expected = $ config ['expected ' ];
218
- $ this -> assertSame ($ expected , $ actual );
218
+ static :: assertSame ($ expected , $ actual );
219
219
}
220
220
221
221
public function envAsArrayDataProvider (): Generator
@@ -227,7 +227,7 @@ public function envAsArrayDataProvider(): Generator
227
227
'expected ' => [
228
228
'general/store_information/name ' => 1 ,
229
229
],
230
- ]
230
+ ],
231
231
];
232
232
yield 'storeScope ' => [
233
233
[
@@ -236,14 +236,14 @@ public function envAsArrayDataProvider(): Generator
236
236
'expected ' => [
237
237
'general/store_information/name ' => 1 ,
238
238
],
239
- ]
239
+ ],
240
240
];
241
241
yield 'invalidScope ' => [
242
242
[
243
243
'env_path ' => '' ,
244
244
'scope ' => 'foo ' ,
245
245
'expected ' => [],
246
- ]
246
+ ],
247
247
];
248
248
}
249
249
@@ -264,31 +264,31 @@ public function testHasPath(array $config): void
264
264
]);
265
265
$ actual = $ loader ->hasPath ($ config ['xml_path ' ]);
266
266
$ expected = $ config ['expected ' ];
267
- $ this -> assertSame ($ expected , $ actual );
267
+ static :: assertSame ($ expected , $ actual );
268
268
}
269
269
270
270
public function envHasPathDataProvider (): Generator
271
271
{
272
272
yield 'hasPath default ' => [
273
273
[
274
- 'env_path ' => 'OPENMAGE_CONFIG__DEFAULT__GENERAL__STORE_INFORMATION__NAME ' ,
275
- 'xml_path ' => 'default/general/store_information/name ' ,
276
- 'expected ' => true ,
277
- ]
274
+ 'env_path ' => 'OPENMAGE_CONFIG__DEFAULT__GENERAL__STORE_INFORMATION__NAME ' ,
275
+ 'xml_path ' => 'default/general/store_information/name ' ,
276
+ 'expected ' => true ,
277
+ ],
278
278
];
279
279
yield 'hasPath store ' => [
280
280
[
281
281
'env_path ' => 'OPENMAGE_CONFIG__STORES__GERMAN__GENERAL__STORE_INFORMATION__NAME ' ,
282
282
'xml_path ' => 'stores/general/store_information/name ' ,
283
283
'expected ' => true ,
284
- ]
284
+ ],
285
285
];
286
286
yield 'hasNotPath ' => [
287
287
[
288
288
'env_path ' => 'OPENMAGE_CONFIG__DEFAULT__GENERAL__STORE_INFORMATION__NAME ' ,
289
289
'xml_path ' => 'foo/foo/foo ' ,
290
290
'expected ' => false ,
291
- ]
291
+ ],
292
292
];
293
293
}
294
294
0 commit comments