MDL-47711 behat: make it easier to copy the init.php command.

This commit is contained in:
Tim Hunt
2014-10-20 12:11:28 +01:00
parent b49de5d930
commit d69a6ad965
+2 -1
View File
@@ -132,7 +132,8 @@ class behat_hooks extends behat_base {
// Prevents using outdated data, upgrade script would start and tests would fail.
if (!behat_util::is_test_data_updated()) {
$commandpath = 'php admin/tool/behat/cli/init.php';
throw new Exception('Your behat test site is outdated, please run ' . $commandpath . ' from your moodle dirroot to drop and install the behat test site again.');
throw new Exception("Your behat test site is outdated, please run\n\n " .
$commandpath . "\n\nfrom your moodle dirroot to drop and install the behat test site again.");
}
// Avoid parallel tests execution, it continues when the previous lock is released.
test_lock::acquire('behat');