#618654 by Steven Merrill, justinrandell, jim0203, quicksketch, and...
#618654 by Steven Merrill, justinrandell, jim0203, quicksketch, and David_Rothstein: Fixed File and image fields are treated as temporary files and automatically deleted after six hours.
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
@@ -223,12 +232,14 @@ class FileFieldRevisionTestCase extends FileFieldTestCase {
$node_vid_r2=$node->vid;
$this->assertFileExists($node_file_r2,t('Replacement file exists on disk after creating new revision.'));
$this->assertFileEntryExists($node_file_r2,t('Replacement file entry exists in database after creating new revision.'));
$this->assertFileIsPermanent($node_file_r2,t('Replacement file is permanent.'));
// Check that the original file is still in place on the first revision.
$node=node_load($nid,$node_vid_r1,TRUE);
$this->assertEqual($node_file_r1,(object)$node->{$field_name}[LANGUAGE_NONE][0],t('Original file still in place after replacing file in new revision.'));
$this->assertFileExists($node_file_r1,t('Original file still in place after replacing file in new revision.'));
$this->assertFileEntryExists($node_file_r1,t('Original file entry still in place after replacing file in new revision'));
$this->assertFileIsPermanent($node_file_r1,t('Original file is still permanent.'));
// Save a new version of the node without any changes.
// Check that the file is still the same as the previous revision.
...
...
@@ -237,6 +248,7 @@ class FileFieldRevisionTestCase extends FileFieldTestCase {
$this->assertFileExists($node_file_r3,t('Second file is still available after deleting second revision, since it is being used by the third revision.'));
$this->assertFileEntryExists($node_file_r3,t('Second file entry is still available after deleting second revision, since it is being used by the third revision.'));
$this->assertFileIsPermanent($node_file_r3,t('Second file entry is still permanent after deleting second revision, since it is being used by the third revision.'));
// Delete the third revision and check that the file is deleted also.