MDL-73592 phpunit: Run adhoc tasks after install
This commit is contained in:
@@ -477,6 +477,12 @@ class phpunit_util extends testing_util {
|
||||
set_config('curlsecurityblockedhosts', '');
|
||||
set_config('curlsecurityallowedport', '');
|
||||
|
||||
// Execute all the adhoc tasks.
|
||||
while ($task = \core\task\manager::get_next_adhoc_task(time())) {
|
||||
$task->execute();
|
||||
\core\task\manager::adhoc_task_complete($task);
|
||||
}
|
||||
|
||||
// We need to keep the installed dataroot filedir files.
|
||||
// So each time we reset the dataroot before running a test, the default files are still installed.
|
||||
self::save_original_data_files();
|
||||
|
||||
Reference in New Issue
Block a user