MDL-80862 testing: Reset task manager between behat tests
This commit is contained in:
@@ -75,6 +75,15 @@ class manager {
|
||||
*/
|
||||
public static $mode;
|
||||
|
||||
/**
|
||||
* Reset the state of the task manager.
|
||||
*/
|
||||
public static function reset_state(): void {
|
||||
self::$miniqueue = null;
|
||||
self::$numtasks = null;
|
||||
self::$mode = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Given a component name, will load the list of tasks in the db/tasks.php file for that component.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user