Hi all,
I'm trying, with Behat, to go to a page giving the full path.
For that, I'm creating a custom step definition, for the following step:
And I go to "/local/plugin/index.php"
In the PHP file where I'm defining the steps, I've tried the following:
/**
* @Given /^I go to "([^"]*)"$/
*/
public function iGoTo($path) {
$fullurl = new \moodle_url($path);
redirect($fullurl);
}
But, Behat marks the step as failed:
Unsupported redirect detected, script execution terminated In step `And I go to "/local/plugin/index.php"' From scenario `scenario'.
Is there any way to set directly an url with Behat?
Thanks in advance,
Julen