From ffaa38a784a493d9125a1c0433be9626e7ee3bea Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 11 Mar 2013 17:06:28 +0000 Subject: [PATCH] * updated traits based on the changes to mink context parameter settings --- .../MinkExtension/Context/MinkDictionary.php | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/Behat/MinkExtension/Context/MinkDictionary.php b/src/Behat/MinkExtension/Context/MinkDictionary.php index a36aef3..d21d031 100644 --- a/src/Behat/MinkExtension/Context/MinkDictionary.php +++ b/src/Behat/MinkExtension/Context/MinkDictionary.php @@ -46,6 +46,16 @@ trait MinkDictionary return $this->mink; } + /** + * Returns the parameters provided for Mink. + * + * @return array + */ + public function getMinkParameters() + { + return $this->minkParameters; + } + /** * Sets parameters provided for Mink. * @@ -68,6 +78,18 @@ trait MinkDictionary return isset($this->minkParameters[$name]) ? $this->minkParameters[$name] : null; } + /** + * Applies the given parameter to the Mink configuration. Consider that all parameters get reset for each + * feature context. + * + * @param string $name The key of the parameter + * @param string $value The value of the parameter + */ + public function setMinkParameter($name, $value) + { + $this->minkParameters[$name] = $value; + } + /** * Returns Mink session. *