protected function Drupali18nTestCase::i18nCreateNode in Internationalization 7
Create node with language
File
- ./
i18n.test, line 238 - Base class for Internationalization tests
Class
- Drupali18nTestCase
- @file Base class for Internationalization tests
Code
protected function i18nCreateNode($language, $settings = array()) {
$language = $this
->getLanguage($language);
$settings += array(
'language' => $language->language,
'body' => array(),
);
$settings['body'] += array(
$language->language => array(
array(),
),
);
return $this
->drupalCreateNode($settings);
}