Skip to content

Commit 35d277f

Browse files
author
Bohdan Korablov
committed
MAGETWO-63382: CLI Improvements: Configuration management - Command config:show
1 parent 852146d commit 35d277f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/code/Magento/Config/Test/Unit/App/Config/Source/EnvironmentConfigSourceTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ class EnvironmentConfigSourceTest extends \PHPUnit_Framework_TestCase
2929

3030
protected function setUp()
3131
{
32+
$_ENV['CONFIG__UNIT__TEST__VALUE'] = 'test_value';
33+
3234
$this->arrayManagerMock = $this->getMockBuilder(ArrayManager::class)
3335
->disableOriginalConstructor()
3436
->getMock();
@@ -53,7 +55,6 @@ public function testGet()
5355
$value = 'test_value';
5456
$path = 'unit/test/value';
5557
$expectedArray = ['unit' => ['test' => ['value' => $value]]];
56-
$_ENV[$placeholder] = $value;
5758

5859
$this->placeholderMock->expects($this->any())
5960
->method('isApplicable')
@@ -71,4 +72,9 @@ public function testGet()
7172

7273
$this->assertSame($expectedArray, $this->source->get());
7374
}
75+
76+
public function tearDown()
77+
{
78+
unset($_ENV['CONFIG__UNIT__TEST__VALUE']);
79+
}
7480
}

0 commit comments

Comments
 (0)