MDL-83807 h5p: Return a default valid H5P

This commit is contained in:
Amaia Anabitarte
2024-12-11 14:11:57 +00:00
committed by Katie Ransom
parent 02e8cebdd2
commit e10420df88
+1 -1
View File
@@ -54,7 +54,7 @@ class mod_h5pactivity_generator extends testing_module_generator {
// Fill in optional values if not specified.
if (!isset($record->packagefilepath)) {
$record->packagefilepath = $CFG->dirroot.'/h5p/tests/fixtures/h5ptest.zip';
$record->packagefilepath = $CFG->dirroot.'/h5p/tests/fixtures/ipsums.h5p';
} else if (strpos($record->packagefilepath, $CFG->dirroot) !== 0) {
$record->packagefilepath = "{$CFG->dirroot}/{$record->packagefilepath}";
}