*/
class behat_util extends testing_util {
+ /**
+ * The behat test site fullname and shortname.
+ */
+ const BEHATSITENAME = "Acceptance test site";
+
/**
* @var array Files to skip when resetting dataroot folder
*/
$options = array();
$options['adminuser'] = 'admin';
$options['adminpass'] = 'admin';
- $options['fullname'] = 'Acceptance test site';
- $options['shortname'] = 'Acceptance test site';
+ $options['fullname'] = self::BEHATSITENAME;
+ $options['shortname'] = self::BEHATSITENAME;
install_cli_database($options, false);
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;
}