mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 10:56:56 +02:00
![]() I noticed during the file system abstraction that this test was incorrect. Since both $storagefalse, and $storagetrue are in the same context, component, area, itemid, and folder, the fact that they had the same filename meant that they constantly overwrote one another. As part of archive_to_storage, existing files in the same location are found, the files themselves deleted, and the existing file record in the files table is deleted. The tests continued to pass because: * the existing variables were not affected by the deletion of the file record and file so the comparisons were successful; and * subsequent calls to fetch the content of the file meant that the files themselves were restored from the trash directory. |
||
---|---|---|
.. | ||
fixtures | ||
file_storage_test.php | ||
file_system_filedir_test.php | ||
file_system_test.php | ||
mbz_packer_test.php | ||
tgz_packer_test.php | ||
zip_packer_test.php |