diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-09-15 09:28:50 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-09-15 09:28:50 +0000 |
commit | e7ac5c58fd101d0de71a1397dd5b33f1b62c5fc7 (patch) | |
tree | 93e4aa08fda69ea8bb2ad31c9af38124c2668a2e /modules/upload/upload.test | |
parent | 1806af909cc912e3ae688577b52a4edbcaf25678 (diff) | |
download | brdo-e7ac5c58fd101d0de71a1397dd5b33f1b62c5fc7.tar.gz brdo-e7ac5c58fd101d0de71a1397dd5b33f1b62c5fc7.tar.bz2 |
#308434 by drewish, dopry, quicksketch, aaron, jhedstrom, and friends: Massive file.inc cleanup aaaaaand... tests! Yay! :D
Diffstat (limited to 'modules/upload/upload.test')
-rw-r--r-- | modules/upload/upload.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/upload/upload.test b/modules/upload/upload.test index 51f9cc81e..842883b54 100644 --- a/modules/upload/upload.test +++ b/modules/upload/upload.test @@ -106,7 +106,7 @@ class UploadTestCase extends DrupalWebTestCase { // Attempt to upload .txt file when .test is only extension allowed. $this->uploadFile($node, $files[0], FALSE); - $this->assertRaw(t('The selected file %name could not be uploaded. Only files with the following extensions are allowed: %files-allowed.', array('%name' => basename($files[0]), '%files-allowed' => $settings['upload_extensions'])), 'File '. $files[0] . ' was not allowed to be uploaded'); + $this->assertRaw(t('The specified file %name could not be uploaded. Only files with the following extensions are allowed: %files-allowed.', array('%name' => basename($files[0]), '%files-allowed' => $settings['upload_extensions'])), 'File '. $files[0] . ' was not allowed to be uploaded'); // Attempt to upload .test file when .test is only extension allowed. $this->uploadFile($node, $files[1]); @@ -143,7 +143,7 @@ class UploadTestCase extends DrupalWebTestCase { $filename = basename($file); $filesize = format_size($info['size']); $maxsize = format_size(parse_size(($settings['upload_uploadsize'] * 1024) . 'KB')); // Won't parse decimals. - $this->assertRaw(t('The selected file %name could not be uploaded. The file is %filesize exceeding the maximum file size of %maxsize.', array('%name' => $filename, '%filesize' => $filesize, '%maxsize' => $maxsize)), t('File upload was blocked since it was larger than maxsize.')); + $this->assertRaw(t('The specified file %name could not be uploaded. The file is %filesize exceeding the maximum file size of %maxsize.', array('%name' => $filename, '%filesize' => $filesize, '%maxsize' => $maxsize)), t('File upload was blocked since it was larger than maxsize.')); } function setUploadSettings($settings, $rid = NULL) { |