19 uses of FILE_EXISTS_RENAME

FileCopyTest::testExistingRename in drupal/modules/simpletest/tests/file.test
Test renaming when copying over a file that already exists.
FileDirectoryTest::testFileDestination in drupal/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::testExistingRename in drupal/modules/simpletest/tests/file.test
Test renaming when moving onto a file that already exists.
FileSaveDataTest::testExistingRename in drupal/modules/simpletest/tests/file.test
Test file_save_data() when renaming around an existing file.
FileSaveUploadTest::testExistingRename in drupal/modules/simpletest/tests/file.test
Test renaming when uploading over a file that already exists.
FileUnmanagedCopyTest::testNormal in drupal/modules/simpletest/tests/file.test
Copy a normal file.
FileUnmanagedCopyTest::testOverwriteSelf in drupal/modules/simpletest/tests/file.test
Copy a file onto itself.
FileUnmanagedMoveTest::testNormal in drupal/modules/simpletest/tests/file.test
Move a normal file.
FileUnmanagedMoveTest::testOverwriteSelf in drupal/modules/simpletest/tests/file.test
Try to move a file onto itself.
file_copy in drupal/includes/file.inc
Copies a file to a new location and adds a file record to the database.
file_destination in drupal/includes/file.inc
Determines the destination path for a file.
file_move in drupal/includes/file.inc
Moves a file to a new location and update the file's database entry.
file_save_data in drupal/includes/file.inc
Saves a file to the specified destination and creates a database entry.
ImageDimensionsTestCase::testImageDimensions in drupal/modules/image/image.test
Test styled image dimensions cumulatively.
ImageStylesPathAndUrlTestCase::testImageContentTypeHeaders in drupal/modules/image/image.test
Test that we do not pass an array to drupal_add_http_header.
ImageStylesPathAndUrlTestCase::_testImageStyleUrlAndPath in drupal/modules/image/image.test
Test image_style_url().
ImageThemeFunctionWebTestCase::testImageFormatterTheme in drupal/modules/image/image.test
Tests usage of the image field formatters.
user_save in drupal/modules/user/user.module
Save changes to a user account or add a new user.
_file_test_form in drupal/modules/simpletest/tests/file_test.module
Form to test file uploads.