Skip to content
Snippets Groups Projects
Commit 27aa5b1b authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent f3a8fa9e
No related branches found
No related tags found
No related merge requests found
......@@ -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'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment