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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user