Skip to content

Commit 9072ff8

Browse files
author
Pascal Querner
committed
fix: fix tests
1 parent b34b1fa commit 9072ff8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/unit/Mage/Core/Helper/EnvironmentConfigLoaderTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public function testXmlHasTestStrings(): void
106106
}
107107

108108
/**
109+
* @runInSeparateProcess
109110
* @dataProvider envOverridesCorrectConfigKeysDataProvider
110111
* @group Mage_Core
111112
* @group Mage_Core_Helper
@@ -124,6 +125,7 @@ public function testEnvOverridesForValidConfigKeys(array $config): void
124125
// phpcs:ignore Ecg.Classes.ObjectInstantiation.DirectInstantiation
125126
$loader = new Mage_Core_Helper_EnvironmentConfigLoader();
126127
$loader->setEnvStore([
128+
'OPENMAGE_CONFIG_OVERRIDE_ALLOWED' => 1,
127129
$config['env_path'] => $config['value'],
128130
]);
129131
$loader->overrideEnvironment($xml);
@@ -207,6 +209,7 @@ public function envOverridesCorrectConfigKeysDataProvider(): Generator
207209
}
208210

209211
/**
212+
* @runInSeparateProcess
210213
* @dataProvider envDoesNotOverrideOnWrongConfigKeysDataProvider
211214
* @group Mage_Core
212215
*
@@ -231,6 +234,7 @@ public function testEnvDoesNotOverrideForInvalidConfigKeys(array $config): void
231234
// phpcs:ignore Ecg.Classes.ObjectInstantiation.DirectInstantiation
232235
$loader = new Mage_Core_Helper_EnvironmentConfigLoader();
233236
$loader->setEnvStore([
237+
'OPENMAGE_CONFIG_OVERRIDE_ALLOWED' => 1,
234238
$config['path'] => $config['value'],
235239
]);
236240
$loader->overrideEnvironment($xml);

0 commit comments

Comments
 (0)