Skip to content

Commit

Permalink
Merge branch 'MDL-82863-main' of https://github.com/sarjona/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
snake committed Aug 23, 2024
2 parents a31ffef + 2142377 commit d18c23b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions admin/tool/generator/classes/local/testscenario/runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ public function include_behat_libraries() {
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');
Expand Down

0 comments on commit d18c23b

Please sign in to comment.