Commit 2ea70d65 authored by webchick's avatar webchick
Browse files

#304940 by drewish: Stop SimpleTest from trying to upload non-files.

parent cccc6206
......@@ -971,7 +971,10 @@ function drupalPost($path, $edit, $submit, $options = array()) {
// is broken. This is a less than elegant workaround. Alternatives
// are being explored at #253506.
foreach ($upload as $key => $file) {
$post[$key] = '@' . realpath($file);
$file = realpath($file);
if ($file && is_file($file)) {
$post[$key] = '@' . $file;
}
}
}
else {
......
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