Merge branch 'MDL-79835_401' of https://github.com/timhunt/moodle into MOODLE_401_STABLE

This commit is contained in:
Sara Arjona 2023-12-12 14:11:51 +01:00
commit eb127cc93b
No known key found for this signature in database

View File

@ -470,13 +470,7 @@ class behat_core_generator extends behat_generator_base {
}
}
// Custom exception.
try {
$this->datagenerator->create_module($activityname, $data, $cmoptions);
} catch (coding_exception $e) {
throw new Exception('\'' . $activityname . '\' activity can not be added using this step,' .
' use the step \'I add a "ACTIVITY_OR_RESOURCE_NAME_STRING" to section "SECTION_NUMBER"\' instead');
}
$this->datagenerator->create_module($activityname, $data, $cmoptions);
}
/**