MDL-78284 theme: Add new interactive content and update styles

This commit is contained in:
Sara Arjona
2024-02-15 17:49:43 +01:00
parent 76474b6c59
commit 8cdd62ca88
44 changed files with 225 additions and 223 deletions
+6 -6
View File
@@ -147,13 +147,13 @@ class entries_export_test extends \advanced_testcase {
$ziparchive = new \zip_archive();
$ziparchive->open($tmpdir . '/testexportarchive.zip');
$expectedfilecontents = [
// The test generator for mod_data uses a copy of pix/monologo.png as sample file content for the file stored in a
// file and picture field.
// So we expect that this file has to have the same content as monologo.png.
// The test generator for mod_data uses a copy of field/picture/pix/sample.png as sample file content for the
// file stored in a file and picture field.
// So we expect that this file has to have the same content as sample.png.
// Also, the default value for the subdirectory in the zip archive containing the files is 'files/'.
'files/samplefile.png' => 'mod/data/pix/monologo.png',
'files/samplefile_1.png' => 'mod/data/pix/monologo.png',
'files/picturefile.png' => 'mod/data/pix/monologo.png',
'files/samplefile.png' => 'mod/data/field/picture/pix/sample.png',
'files/samplefile_1.png' => 'mod/data/field/picture/pix/sample.png',
'files/picturefile.png' => 'mod/data/field/picture/pix/sample.png',
// By checking that the content of the exported csv is identical to the fixture file it is verified
// that the filenames in the csv file correspond to the names of the exported file.
// It also verifies that files with identical file names in different fields (or records) will be numbered
+1 -1
View File
@@ -325,7 +325,7 @@ class mod_data_generator extends testing_module_generator {
get_file_storage()->create_file_from_string(['component' => 'user', 'filearea' => 'draft',
'contextid' => $usercontext->id, 'itemid' => $itemid, 'filepath' => '/',
'filename' => $filename],
file_get_contents($CFG->dirroot.'/mod/data/pix/monologo.png'));
file_get_contents($CFG->dirroot.'/mod/data/field/picture/pix/sample.png'));
}
$fieldname = 'field_' . $fieldid . '_file';