summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorJennifer Hodgdon <yahgrp@poplarware.com>2013-06-28 10:58:46 -0700
committerJennifer Hodgdon <yahgrp@poplarware.com>2013-06-28 10:58:46 -0700
commitf9b90224caa14159b3d71b84fa8674f1f6665fbd (patch)
tree695af7e453671746a16148c4c1e3b2e50e8d674e /modules/system
parentfa1ea2a912c541f5717ffe06d0fc3b7dc7f68506 (diff)
downloadbrdo-f9b90224caa14159b3d71b84fa8674f1f6665fbd.tar.gz
brdo-f9b90224caa14159b3d71b84fa8674f1f6665fbd.tar.bz2
Issue #1797252 by dcam, lazysoundsystem, pwieck, andypost, Lars Toomre, xjm: Remove t() from test assertions in file-related tests
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system.test16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/system/system.test b/modules/system/system.test
index c19dc0cb4..3ecbaf799 100644
--- a/modules/system/system.test
+++ b/modules/system/system.test
@@ -823,7 +823,7 @@ class CronRunTestCase extends DrupalWebTestCase {
))
->condition('fid', $temp_old->fid)
->execute();
- $this->assertTrue(file_exists($temp_old->uri), t('Old temp file was created correctly.'));
+ $this->assertTrue(file_exists($temp_old->uri), 'Old temp file was created correctly.');
// Temporary file that is less than DRUPAL_MAXIMUM_TEMP_FILE_AGE.
$temp_new = file_save_data('');
@@ -831,7 +831,7 @@ class CronRunTestCase extends DrupalWebTestCase {
->fields(array('status' => 0))
->condition('fid', $temp_new->fid)
->execute();
- $this->assertTrue(file_exists($temp_new->uri), t('New temp file was created correctly.'));
+ $this->assertTrue(file_exists($temp_new->uri), 'New temp file was created correctly.');
// Permanent file that is older than DRUPAL_MAXIMUM_TEMP_FILE_AGE.
$perm_old = file_save_data('');
@@ -839,18 +839,18 @@ class CronRunTestCase extends DrupalWebTestCase {
->fields(array('timestamp' => 1))
->condition('fid', $temp_old->fid)
->execute();
- $this->assertTrue(file_exists($perm_old->uri), t('Old permanent file was created correctly.'));
+ $this->assertTrue(file_exists($perm_old->uri), 'Old permanent file was created correctly.');
// Permanent file that is newer than DRUPAL_MAXIMUM_TEMP_FILE_AGE.
$perm_new = file_save_data('');
- $this->assertTrue(file_exists($perm_new->uri), t('New permanent file was created correctly.'));
+ $this->assertTrue(file_exists($perm_new->uri), 'New permanent file was created correctly.');
// Run cron and then ensure that only the old, temp file was deleted.
$this->cronRun();
- $this->assertFalse(file_exists($temp_old->uri), t('Old temp file was correctly removed.'));
- $this->assertTrue(file_exists($temp_new->uri), t('New temp file was correctly ignored.'));
- $this->assertTrue(file_exists($perm_old->uri), t('Old permanent file was correctly ignored.'));
- $this->assertTrue(file_exists($perm_new->uri), t('New permanent file was correctly ignored.'));
+ $this->assertFalse(file_exists($temp_old->uri), 'Old temp file was correctly removed.');
+ $this->assertTrue(file_exists($temp_new->uri), 'New temp file was correctly ignored.');
+ $this->assertTrue(file_exists($perm_old->uri), 'Old permanent file was correctly ignored.');
+ $this->assertTrue(file_exists($perm_new->uri), 'New permanent file was correctly ignored.');
}
/**