From af9fb11f5f3cc220ee2c08071ee9d50f11048b86 Mon Sep 17 00:00:00 2001 From: Tibor Kotosz Date: Thu, 17 Dec 2015 14:26:09 +0100 Subject: [PATCH] Fix driver node builder to be able to merge node values properly by profile --- .../Behat/ExtensionDriverLocator/DriverNodeBuilder.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Bex/Behat/ExtensionDriverLocator/DriverNodeBuilder.php b/src/Bex/Behat/ExtensionDriverLocator/DriverNodeBuilder.php index 45155de..6a43f40 100644 --- a/src/Bex/Behat/ExtensionDriverLocator/DriverNodeBuilder.php +++ b/src/Bex/Behat/ExtensionDriverLocator/DriverNodeBuilder.php @@ -49,7 +49,7 @@ public function buildDriverNodes( $defaultActiveDrivers = (is_array($defaultActiveDrivers)) ? $defaultActiveDrivers : [$defaultActiveDrivers]; $builder ->children() - ->arrayNode($activeDriversNodeName) + ->variableNode($activeDriversNodeName) ->defaultValue($defaultActiveDrivers) ->beforeNormalization() ->ifString() @@ -59,13 +59,11 @@ public function buildDriverNodes( ->ifTrue($this->getDriverKeyValidator()) ->thenInvalid('%s') ->end() - ->prototype('scalar')->end() ->end() - ->end() - ->fixXmlConfig($driversNodeName . '_child', $driversNodeName) - ->children() ->arrayNode($driversNodeName) + ->useAttributeAsKey('name') ->prototype('array') + ->useAttributeAsKey('name') ->prototype('scalar')->end() ->end() ->end()