diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-09-11 21:14:32 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-09-11 21:14:32 +0000 |
commit | 4237d014e9599fb54243c87f23a003df012b29a7 (patch) | |
tree | f7d7f6f69754db132743d1214eab81228d01bd90 /modules/simpletest/tests | |
parent | d5a1c652973af06d64305ae1672bd215b2cdfb58 (diff) | |
download | brdo-4237d014e9599fb54243c87f23a003df012b29a7.tar.gz brdo-4237d014e9599fb54243c87f23a003df012b29a7.tar.bz2 |
#874326 by rfay, pwolanin, chx: Fixed Invalid scheme fails to halt processing of a stream request.
Diffstat (limited to 'modules/simpletest/tests')
-rw-r--r-- | modules/simpletest/tests/file.test | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/simpletest/tests/file.test b/modules/simpletest/tests/file.test index 7d3c7bccc..f8c72ac63 100644 --- a/modules/simpletest/tests/file.test +++ b/modules/simpletest/tests/file.test @@ -575,7 +575,9 @@ class FileSaveUploadTest extends FileHookTestCase { $account = $this->drupalCreateUser(array('access content')); $this->drupalLogin($account); - $this->image = current($this->drupalGetTestFiles('image')); + $image_files = $this->drupalGetTestFiles('image'); + $this->image = current($image_files); + list(, $this->image_extension) = explode('.', $this->image->filename); $this->assertTrue(is_file($this->image->uri), t("The image file we're going to upload exists.")); |