* added method to get all parameters from the mink configuration
* added method for setting a single parameter (this is useful for instance if you want to change the base_url context specific)
This commit is contained in:
@@ -47,6 +47,16 @@ class RawMinkContext extends BehatContext implements MinkAwareInterface
|
||||
return $this->mink;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the parameters provided for Mink.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getMinkParameters()
|
||||
{
|
||||
return $this->minkParameters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parameters provided for Mink.
|
||||
*
|
||||
@@ -69,6 +79,18 @@ class RawMinkContext extends BehatContext implements MinkAwareInterface
|
||||
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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user