fix: #3615576 FileExistsException thrown in FileSystem::prepareDestination...
fix: #3615576 FileExistsException thrown in FileSystem::prepareDestination does not show destination path
By: shank115
By: kieran.cott
By: smustgrave
(cherry picked from commit cfcf382a)
thrownewFileExistsException("File '$original_source' could not be copied because a file by that name already exists in the destination directory ('$destination').");
thrownewFileExistsException("File '$original_source' could not be copied because a file by that name already exists in the destination directory ('$original_destination').");
}
// Assert that the source and destination filenames are not the same.
$this->expectExceptionMessageIs("File 'public://test.txt' could not be copied because a file by that name already exists in the destination directory ('').");
$this->expectExceptionMessageIs("File 'public://test.txt' could not be copied because a file by that name already exists in the destination directory ('public://test.txt').");