moodle/lib/filestorage/tests
Andrew Nicols 0c03db6a32 MDL-46375 core_files: Correct filename in mbz test
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.
2017-02-14 08:42:28 +08:00
..
fixtures MDL-46375 core_files: Split parts of file_storage into new file system 2017-02-14 08:42:28 +08:00
file_storage_test.php MDL-46375 core_files: Split parts of file_storage into new file system 2017-02-14 08:42:28 +08:00
file_system_filedir_test.php MDL-46375 core_files: Split parts of file_storage into new file system 2017-02-14 08:42:28 +08:00
file_system_test.php MDL-46375 core_files: Split parts of file_storage into new file system 2017-02-14 08:42:28 +08:00
mbz_packer_test.php MDL-46375 core_files: Correct filename in mbz test 2017-02-14 08:42:28 +08:00
tgz_packer_test.php MDL-24343 core: Deprecate unzip_file 2016-08-03 09:05:55 +08:00
zip_packer_test.php MDL-24343 core: Deprecate unzip_file 2016-08-03 09:05:55 +08:00