Commit bac6eed5 authored by webchick's avatar webchick

#606460 by peximo: Fixed Node revision test fatal error.

parent d854417e
......@@ -730,7 +730,7 @@ protected function drupalCreateNode($settings = array()) {
'value' => $this->randomName(32),
'format' => filter_default_format(),
);
$langcode = isset($settings['language']) ? $settings['language'] : FIELD_LANGUAGE_NONE;
$langcode = !empty($settings['language']) ? $settings['language'] : FIELD_LANGUAGE_NONE;
$settings['body'][$langcode][0] += $body;
$node = (object) $settings;
......
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