FileCopyTest::testExistingError in core/modules/simpletest/tests/file.test
Test that copying over an existing file fails when FILE_EXISTS_ERROR is specified.
FileCopyTest::testNormal in core/modules/simpletest/tests/file.test
Test file copying in the normal, base case.
FileDirectoryTest::testFileDestination in core/modules/simpletest/tests/file.test
This will test the filepath for a destination based on passed flags and whether or not the file exists.
FileMoveTest::testExistingError in core/modules/simpletest/tests/file.test
Test that moving onto an existing file fails when FILE_EXISTS_ERROR is specified.
FileMoveTest::testNormal in core/modules/simpletest/tests/file.test
Move a normal file.
FileSaveDataTest::testExistingError in core/modules/simpletest/tests/file.test
Test that file_save_data() fails overwriting an existing file.
FileSaveUploadTest::testErrors in core/modules/simpletest/tests/file.test
Test for failure when uploading over a file that already exists.
FileUnmanagedCopyTest::testNormal in core/modules/simpletest/tests/file.test
Copy a normal file.
FileUnmanagedCopyTest::testOverwriteSelf in core/modules/simpletest/tests/file.test
Copy a file onto itself.
FileUnmanagedMoveTest::testNormal in core/modules/simpletest/tests/file.test
Move a normal file.
file_destination in core/includes/file.inc
Determines the destination path for a file.
ImageFileMoveTest::testNormal in core/modules/simpletest/tests/image.test
Tests moving a randomly generated image.
_file_test_form in core/modules/simpletest/tests/file_test.module
Form to test file uploads.