Loading core/modules/file/src/Tests/ValidatorTest.php +0 −6 Changes for core/modules/file/src/Tests/ValidatorTest.php: 0 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -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); Loading Loading
core/modules/file/src/Tests/ValidatorTest.php +0 −6 Changes for core/modules/file/src/Tests/ValidatorTest.php: 0 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -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); Loading