Commit 27aa5b1b authored by Dries's avatar Dries

- Patch #730220 by Berdir, aspilicious, Damien Tournoud, pwolanin: fixed ImageFieldDisplayTestCase.

parent f3a8fa9e
......@@ -570,7 +570,7 @@ class ImageFieldTestCase extends DrupalWebTestCase {
*/
function uploadNodeImage($image, $field_name, $type) {
$edit = array(
'title' => $this->randomString(),
'title' => $this->randomName(),
);
$edit['files[' . $field_name . '_' . LANGUAGE_NONE . '_0]'] = realpath($image->uri);
$this->drupalPost('node/add/' . $type, $edit, t('Save'));
......
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