1. 1 core/modules/file/tests/file.test
  2. 1 core/modules/simpletest/tests/file.test

This provides SimpleTests for the core file handling functionality. These include FileValidateTest and FileSaveTest.

File

core/modules/simpletest/tests/file.test

Functions

Namesort descending Description
file_test_file_scan_callback Helper function for testing file_scan_directory().
file_test_file_scan_callback_reset Reset static variables used by file_test_file_scan_callback().
file_test_validator Helper validator that returns the $errors parameter.

Classes

Namesort descending Description
FileCopyTest Copy related tests.
FileDeleteTest Deletion related tests.
FileDirectoryTest Directory related tests.
FileDownloadTest Tests for download/file transfer functions.
FileHookTestCase Base class for file tests that use the file_test module to test uploads and hooks.
FileLoadTest Tests the file_load() function.
FileMimeTypeTest Tests for file_get_mimetype().
FileMoveTest Move related tests
FileNameMungingTest Tests for file_munge_filename() and file_unmunge_filename().
FileSaveDataTest Tests the file_save_data() function.
FileSaveTest Tests saving files.
FileSaveUploadTest Test the file_save_upload() function.
FileScanDirectoryTest Tests the file_scan_directory() function.
FileSpaceUsedTest This will run tests against the file_space_used() function.
FileTestCase Base class for file tests that adds some additional file specific assertions and helper functions.
FileUnmanagedCopyTest Unmanaged copy related tests.
FileUnmanagedDeleteRecursiveTest Deletion related tests.
FileUnmanagedDeleteTest Deletion related tests.
FileUnmanagedMoveTest Unmanaged move related tests.
FileUnmanagedSaveDataTest Tests the file_unmanaged_save_data() function.
FileUploadTransliterationTest Tests transliterating files on upload and subsequent bulk updating.
FileURLRewritingTest Tests for file URL rewriting.
FileUsageTest Tests file usage functions.
FileValidateTest Tests the file_validate() function..
FileValidatorTest This will run tests against the file validation functions (file_validate_*).
RemoteFileDirectoryTest Directory related tests.
RemoteFileSaveUploadTest Test the file_save_upload() function on remote filesystems.
RemoteFileScanDirectoryTest Tests the file_scan_directory() function on remote filesystems.
RemoteFileUnmanagedCopyTest Unmanaged copy related tests on remote filesystems.
RemoteFileUnmanagedDeleteRecursiveTest Deletion related tests on remote filesystems.
RemoteFileUnmanagedDeleteTest Deletion related tests on remote filesystems.
RemoteFileUnmanagedMoveTest Unmanaged move related tests on remote filesystems.
RemoteFileUnmanagedSaveDataTest Tests the file_unmanaged_save_data() function on remote filesystems.
StreamWrapperTest Tests stream wrapper functions.