mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-55117 behat: Re-initialise to ensure modified config is not used
As behat cli process is 1 run for features Any modification in will be reflected in later runs on cli. In this case - disabling enablebadges in block_badges.feature - reflected while running cron in award_badges.feature
This commit is contained in:
parent
0344082208
commit
a396321e44
@ -345,5 +345,9 @@ class behat_util extends testing_util {
|
||||
|
||||
// Inform data generator.
|
||||
self::get_data_generator()->reset();
|
||||
|
||||
// Initialise $CFG with default values. This is needed for behat cli process, so we don't have modified
|
||||
// $CFG values from the old run. @see set_config.
|
||||
initialise_cfg();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user