@@ -234,31 +234,31 @@ public function testResetDataOnMissingConfig(): void
234
234
$ this ->assertEquals ($ defaultValue , $ result );
235
235
}
236
236
237
- public function testNoEnvVariables ()
237
+ public function testNoEnvVariables (): void
238
238
{
239
- $ this ->reader ->expects ($ this ->once ())->method ('load ' )->willReturn (['a ' =>'b ' ]);
240
- $ this ->assertSame ('b ' , $ this ->_deploymentConfig ->get ('a ' ));
239
+ $ this ->readerMock ->expects ($ this ->once ())->method ('load ' )->willReturn (['a ' =>'b ' ]);
240
+ $ this ->assertSame ('b ' , $ this ->deploymentConfig ->get ('a ' ));
241
241
}
242
242
243
- public function testEnvVariables ()
243
+ public function testEnvVariables (): void
244
244
{
245
- $ this ->reader ->expects ($ this ->once ())->method ('load ' )->willReturn ([]);
245
+ $ this ->readerMock ->expects ($ this ->once ())->method ('load ' )->willReturn ([]);
246
246
putenv ('MAGENTO_DC__OVERRIDE={"a": "c"} ' );
247
- $ this ->assertSame ('c ' , $ this ->_deploymentConfig ->get ('a ' ));
247
+ $ this ->assertSame ('c ' , $ this ->deploymentConfig ->get ('a ' ));
248
248
}
249
249
250
- public function testEnvVariablesWithNoBaseConfig ()
250
+ public function testEnvVariablesWithNoBaseConfig (): void
251
251
{
252
- $ this ->reader ->expects ($ this ->once ())->method ('load ' )->willReturn (['a ' =>'b ' ]);
252
+ $ this ->readerMock ->expects ($ this ->once ())->method ('load ' )->willReturn (['a ' =>'b ' ]);
253
253
putenv ('MAGENTO_DC_A=c ' );
254
254
putenv ('MAGENTO_DC_B__B__B=D ' );
255
- $ this ->assertSame ('c ' , $ this ->_deploymentConfig ->get ('a ' ));
256
- $ this ->assertSame ('D ' , $ this ->_deploymentConfig ->get ('b/b/b ' ));
255
+ $ this ->assertSame ('c ' , $ this ->deploymentConfig ->get ('a ' ));
256
+ $ this ->assertSame ('D ' , $ this ->deploymentConfig ->get ('b/b/b ' ));
257
257
}
258
258
259
- public function testEnvVariablesSubstitution ()
259
+ public function testEnvVariablesSubstitution (): void
260
260
{
261
- $ this ->reader ->expects ($ this ->once ())
261
+ $ this ->readerMock ->expects ($ this ->once ())
262
262
->method ('load ' )
263
263
->willReturn (
264
264
[
@@ -269,8 +269,8 @@ public function testEnvVariablesSubstitution()
269
269
);
270
270
putenv ('MAGENTO_DC____A=c ' );
271
271
putenv ('MAGENTO_DC____B=D ' );
272
- $ this ->assertSame ('c ' , $ this ->_deploymentConfig ->get ('a ' ));
273
- $ this ->assertSame ('D ' , $ this ->_deploymentConfig ->get ('b ' ), 'return value from env ' );
274
- $ this ->assertSame ('e$%^& ' , $ this ->_deploymentConfig ->get ('c ' ), 'return default value ' );
272
+ $ this ->assertSame ('c ' , $ this ->deploymentConfig ->get ('a ' ));
273
+ $ this ->assertSame ('D ' , $ this ->deploymentConfig ->get ('b ' ), 'return value from env ' );
274
+ $ this ->assertSame ('e$%^& ' , $ this ->deploymentConfig ->get ('c ' ), 'return default value ' );
275
275
}
276
276
}
0 commit comments