diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-01-02 21:45:11 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-01-02 21:45:11 +0000 |
commit | 86aa636c8b5b2a3ef9437352af28cb8ed5f04523 (patch) | |
tree | 8a797a99ff808bb2820889f5e6fe800849363596 /modules/system | |
parent | b3649703d59c4eca97383855eb4f27572a8634cb (diff) | |
download | brdo-86aa636c8b5b2a3ef9437352af28cb8ed5f04523.tar.gz brdo-86aa636c8b5b2a3ef9437352af28cb8ed5f04523.tar.bz2 |
- Patch #353207 by CitizenKane and drewish: cleaned up the FILE_STATUS_TEMPORARY field.
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/system.test b/modules/system/system.test index c751bcdc8..3773af13c 100644 --- a/modules/system/system.test +++ b/modules/system/system.test @@ -263,12 +263,12 @@ class CronRunTestCase extends DrupalWebTestCase { // Temporary file that is older than DRUPAL_MAXIMUM_TEMP_FILE_AGE. $temp_old = file_save_data(''); - db_query('UPDATE {files} SET status = :status, timestamp = :timestamp WHERE fid = :fid', array(':status' => FILE_STATUS_TEMPORARY, ':timestamp' => 1, ':fid' => $temp_old->fid)); + db_query('UPDATE {files} SET status = :status, timestamp = :timestamp WHERE fid = :fid', array(':status' => 0, ':timestamp' => 1, ':fid' => $temp_old->fid)); $this->assertTrue(file_exists($temp_old->filepath), t('Old temp file was created correctly.')); // Temporary file that is less than DRUPAL_MAXIMUM_TEMP_FILE_AGE. $temp_new = file_save_data(''); - db_query('UPDATE {files} SET status = :status WHERE fid = :fid', array(':status' => FILE_STATUS_TEMPORARY, ':fid' => $temp_new->fid)); + db_query('UPDATE {files} SET status = :status WHERE fid = :fid', array(':status' => 0, ':fid' => $temp_new->fid)); $this->assertTrue(file_exists($temp_new->filepath), t('New temp file was created correctly.')); // Permanent file that is older than DRUPAL_MAXIMUM_TEMP_FILE_AGE. |