MDL-86831 behat: Adopt behat paths to include public/

This commit is contained in:
Luca Bösch
2025-10-30 18:55:41 +01:00
parent a1c5c162b3
commit 8fec48df4a
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ Options:
-h, --help Print out this help
Example from Moodle root directory:
\$ php admin/tool/behat/cli/init.php --parallel=2
\$ php public/admin/tool/behat/cli/init.php --parallel=2
More info in https://moodledev.io/general/development/tools/behat/running
";
+1 -1
View File
@@ -89,7 +89,7 @@ Options:
-h, --help Print out this help
Example from Moodle root directory:
\$ php admin/tool/behat/cli/run.php --tags=\"@javascript\"
\$ php public/admin/tool/behat/cli/run.php --tags=\"@javascript\"
More info in https://moodledev.io/general/development/tools/behat/running
";
+1 -1
View File
@@ -102,7 +102,7 @@ Options:
-h, --help Print out this help
Example from Moodle root directory:
\$ php admin/tool/behat/cli/util.php --enable --parallel=4
\$ php public/admin/tool/behat/cli/util.php --enable --parallel=4
More info in https://moodledev.io/general/development/tools/behat/running
";
@@ -95,7 +95,7 @@ Options:
-h, --help Print out this help
Example from Moodle root directory:
\$ php admin/tool/behat/cli/util_single_run.php --enable
\$ php public/admin/tool/behat/cli/util_single_run.php --enable
More info in https://moodledev.io/general/development/tools/behat/running
";
@@ -132,7 +132,7 @@ try {
$runner->init();
} catch (Exception $e) {
echo "Something is wrong with the behat setup.\n";
echo " Please,try running \"php admin/tool/behat/cli/init.php\" from your Moodle root directory.\n";
echo " Please,try running \"php public/admin/tool/behat/cli/init.php\" from your Moodle root directory.\n";
exit(0);
}
+1 -1
View File
@@ -178,7 +178,7 @@ 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';
$commandpath = 'php public/admin/tool/behat/cli/init.php';
$message = <<<EOF
Your behat test site is outdated, please run the following command from your Moodle dirroot to drop, and reinstall the Behat test site.