From 1b68c7343fa6d1f6171816a49197013bfbd225c5 Mon Sep 17 00:00:00 2001 From: Konstantin Kudryashov Date: Wed, 12 Dec 2012 09:34:22 +0100 Subject: [PATCH] Always disable Guzzle redirects --- src/Behat/MinkExtension/Extension.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Behat/MinkExtension/Extension.php b/src/Behat/MinkExtension/Extension.php index 368512d..9066350 100644 --- a/src/Behat/MinkExtension/Extension.php +++ b/src/Behat/MinkExtension/Extension.php @@ -98,6 +98,10 @@ class Extension implements ExtensionInterface $minkParameters[$ns] = $tlValue; } else { foreach ($tlValue as $name => $value) { + if ('guzzle_parameters' === $name) { + $value['redirect.disable'] = true; + } + $container->setParameter("behat.mink.$ns.$name", $value); } }