Commit ee91cb07 authored by alexpott's avatar alexpott

Issue #2331151 by David_Rothstein: Remove leftover code in...

Issue #2331151 by David_Rothstein: Remove leftover code in testFileValidateSize() which runs the tests as a specific user.
parent db6bd07b
......@@ -140,12 +140,6 @@ function testFileValidateNameLength() {
* Test file_validate_size().
*/
function testFileValidateSize() {
// Run these tests as a regular user.
$user = entity_create('user', array('uid' => 2, 'name' => $this->randomMachineName()));
$user->enforceIsNew();
$user->save();
\Drupal::currentUser()->setAccount($user);
// Create a file with a size of 1000 bytes, and quotas of only 1 byte.
$file = entity_create('file', array('filesize' => 1000));
$errors = file_validate_size($file, 0, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment