MDL-82863 tool_generator: Add missing BEHAT_TEST constant

The tool_generator now defines the BEHAT_TEST constant to ensure
that Behat generators are consistently utilized.
This commit is contained in:
Sara Arjona
2024-08-22 13:23:07 +02:00
parent e0a9cf2288
commit 2142377dda
@@ -76,6 +76,12 @@ class runner {
if (!class_exists('Behat\Gherkin\Lexer')) {
throw new \moodle_exception('Missing behat classes.');
}
// Behat constant.
if (!defined('BEHAT_TEST')) {
define('BEHAT_TEST', 1);
}
// Behat utilities.
require_once($CFG->libdir . '/behat/classes/util.php');
require_once($CFG->libdir . '/behat/classes/behat_command.php');