File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
app/code/Magento/Config/Test/Unit/App/Config/Source Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ class EnvironmentConfigSourceTest extends \PHPUnit_Framework_TestCase
29
29
30
30
protected function setUp ()
31
31
{
32
+ $ _ENV ['CONFIG__UNIT__TEST__VALUE ' ] = 'test_value ' ;
33
+
32
34
$ this ->arrayManagerMock = $ this ->getMockBuilder (ArrayManager::class)
33
35
->disableOriginalConstructor ()
34
36
->getMock ();
@@ -53,7 +55,6 @@ public function testGet()
53
55
$ value = 'test_value ' ;
54
56
$ path = 'unit/test/value ' ;
55
57
$ expectedArray = ['unit ' => ['test ' => ['value ' => $ value ]]];
56
- $ _ENV [$ placeholder ] = $ value ;
57
58
58
59
$ this ->placeholderMock ->expects ($ this ->any ())
59
60
->method ('isApplicable ' )
@@ -71,4 +72,9 @@ public function testGet()
71
72
72
73
$ this ->assertSame ($ expectedArray , $ this ->source ->get ());
73
74
}
75
+
76
+ public function tearDown ()
77
+ {
78
+ unset($ _ENV ['CONFIG__UNIT__TEST__VALUE ' ]);
79
+ }
74
80
}
You can’t perform that action at this time.
0 commit comments