MDL-49412 behat: I am on site homepage behat step

Part of MDL-45774.
This commit is contained in:
Ankit Agarwal 2015-03-30 12:25:50 +05:30 committed by Adrian Greeve
parent 7b05a0feb6
commit 7a437e3661

View file

@ -78,6 +78,15 @@ class behat_general extends behat_base {
$this->getSession()->visit($this->locate_path('/'));
}
/**
* Opens Moodle site homepage.
*
* @Given /^I am on site homepage$/
*/
public function i_am_on_site_homepage() {
$this->getSession()->visit($this->locate_path('/?redirect=0'));
}
/**
* Reloads the current page.
*