From ec4f78d80c1cf1ebe8d69995b10f28d4e4b12807 Mon Sep 17 00:00:00 2001 From: Jonathan Hedstrom Date: Wed, 16 May 2018 14:57:17 -0700 Subject: [PATCH] Support for BrowserKit's follow meta refresh tags in Goutte. - Fixes #326 --- .../MinkExtension/ServiceContainer/Driver/GoutteFactory.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Behat/MinkExtension/ServiceContainer/Driver/GoutteFactory.php b/src/Behat/MinkExtension/ServiceContainer/Driver/GoutteFactory.php index fb10d889..47b0149e 100644 --- a/src/Behat/MinkExtension/ServiceContainer/Driver/GoutteFactory.php +++ b/src/Behat/MinkExtension/ServiceContainer/Driver/GoutteFactory.php @@ -53,6 +53,7 @@ public function configure(ArrayNodeDefinition $builder) 'For Goutte 2.x, these are the elements passed in the "defaults" key of the Guzzle4 config.' ) ->end() + ->scalarNode('follow_meta_refresh')->defaultFalse()->end() ->end() ; } @@ -80,6 +81,7 @@ public function buildDriver(array $config) $config['server_parameters'], )); $clientDefinition->addMethodCall('setClient', array($guzzleClient)); + $clientDefinition->addMethodCall('followMetaRefresh', array($config['follow_meta_refresh'])); return new Definition('Behat\Mink\Driver\GoutteDriver', array( $clientDefinition,