Skip to content

Commit

Permalink
Support for BrowserKit's follow meta refresh tags in Goutte.
Browse files Browse the repository at this point in the history
- Fixes Behat#326
  • Loading branch information
jhedstrom committed May 16, 2018
1 parent 80f7849 commit ec4f78d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
;
}
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit ec4f78d

Please sign in to comment.