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 ascending Description
file_test_validator Helper validator that returns the $errors parameter.
file_test_file_scan_callback_reset Reset static variables used by file_test_file_scan_callback().
file_test_file_scan_callback Helper function for testing file_scan_directory().

Classes

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