Skip to content

Commit ebe4faf

Browse files
Eric COURTIALfabpot
authored andcommitted
[Config] Allow using environment variables in EnumNode
1 parent bb9bc6f commit ebe4faf

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Tests/Compiler/ValidateEnvPlaceholdersPassTest.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -153,19 +153,6 @@ public function testConcatenatedEnvInConfig()
153153
$this->assertSame(['scalar_node' => $expected], $container->resolveEnvPlaceholders($ext->getConfig()));
154154
}
155155

156-
public function testEnvIsIncompatibleWithEnumNode()
157-
{
158-
$this->expectException(InvalidConfigurationException::class);
159-
$this->expectExceptionMessage('A dynamic value is not compatible with a "Symfony\Component\Config\Definition\EnumNode" node type at path "env_extension.enum_node".');
160-
$container = new ContainerBuilder();
161-
$container->registerExtension(new EnvExtension());
162-
$container->prependExtensionConfig('env_extension', [
163-
'enum_node' => '%env(FOO)%',
164-
]);
165-
166-
$this->doProcess($container);
167-
}
168-
169156
public function testEnvIsIncompatibleWithArrayNode()
170157
{
171158
$this->expectException(InvalidConfigurationException::class);

0 commit comments

Comments
 (0)