summaryrefslogtreecommitdiff
path: root/modules/simpletest
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2015-05-04 23:57:31 -0400
committerDavid Rothstein <drothstein@gmail.com>2015-05-04 23:57:31 -0400
commita4b517fd01e41842b26a1f0329824faae39bcce1 (patch)
tree36fe6340ecab7827f53b0f595735fe50ea652c90 /modules/simpletest
parent992c34675ab5910d8d93cd2a1a2ed28aaffe35d9 (diff)
downloadbrdo-a4b517fd01e41842b26a1f0329824faae39bcce1.tar.gz
brdo-a4b517fd01e41842b26a1f0329824faae39bcce1.tar.bz2
Issue #2331151 by David_Rothstein, Devin Carlson: Remove leftover code in testFileValidateSize() which runs the tests as a specific user
Diffstat (limited to 'modules/simpletest')
-rw-r--r--modules/simpletest/tests/file.test10
1 files changed, 0 insertions, 10 deletions
diff --git a/modules/simpletest/tests/file.test b/modules/simpletest/tests/file.test
index b75327f11..89ecac7ae 100644
--- a/modules/simpletest/tests/file.test
+++ b/modules/simpletest/tests/file.test
@@ -480,13 +480,6 @@ class FileValidatorTest extends DrupalWebTestCase {
* Test file_validate_size().
*/
function testFileValidateSize() {
- global $user;
- $original_user = $user;
- drupal_save_session(FALSE);
-
- // Run these tests as a regular user.
- $user = $this->drupalCreateUser();
-
// Create a file with a size of 1000 bytes, and quotas of only 1 byte.
$file = new stdClass();
$file->filesize = 1000;
@@ -498,9 +491,6 @@ class FileValidatorTest extends DrupalWebTestCase {
$this->assertEqual(count($errors), 1, 'Error for the user being over their limit.', 'File');
$errors = file_validate_size($file, 1, 1);
$this->assertEqual(count($errors), 2, 'Errors for both the file and their limit.', 'File');
-
- $user = $original_user;
- drupal_save_session(TRUE);
}
}