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/image | |
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/image')
-rw-r--r-- | modules/image/image.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/image/image.test b/modules/image/image.test index 522524ab8..0709d918b 100644 --- a/modules/image/image.test +++ b/modules/image/image.test @@ -94,7 +94,7 @@ class ImageFieldTestCase extends DrupalWebTestCase { $edit = array( 'title' => $this->randomName(), ); - $edit['files[' . $field_name . '_' . LANGUAGE_NONE . '_0]'] = realpath($image->uri); + $edit['files[' . $field_name . '_' . LANGUAGE_NONE . '_0]'] = drupal_realpath($image->uri); $this->drupalPost('node/add/' . $type, $edit, t('Save')); // Retrieve ID of the newly created node from the current URL. @@ -786,7 +786,7 @@ class ImageFieldDisplayTestCase extends ImageFieldTestCase { // Add a default image to the imagefield instance. $images = $this->drupalGetTestFiles('image'); $edit = array( - 'files[field_settings_default_image]' => realpath($images[0]->uri), + 'files[field_settings_default_image]' => drupal_realpath($images[0]->uri), ); $this->drupalPost('admin/structure/types/manage/article/fields/' . $field_name, $edit, t('Save settings')); // Clear field info cache so the new default image is detected. |