MDL-41587 tool_behat: Adding site name constant

This commit is contained in:
David Monllao 2013-09-04 14:29:11 +08:00
parent 3b7d3fb8d7
commit 19f6703d8b
2 changed files with 8 additions and 3 deletions

View file

@ -185,7 +185,7 @@ class behat_hooks extends behat_base {
if (self::is_first_scenario()) {
$notestsiteexception = new Exception('The base URL (' . $CFG->wwwroot . ') is not a behat test site, ' .
'ensure you started the built-in web server in the correct directory or your web server is correctly started and set up');
$this->find("xpath", "//head/child::title[normalize-space(.)='Acceptance test site']", $notestsiteexception);
$this->find("xpath", "//head/child::title[normalize-space(.)='" . behat_util::BEHATSITENAME . "']", $notestsiteexception);
self::$initprocessesfinished = true;
}