function i18nTaxonomyTestCase::drupalCreateVocabulary in Internationalization 7
File
- i18n_taxonomy/
i18n_taxonomy.test, line 165 - Test case for multilingual taxonomy
Class
- i18nTaxonomyTestCase
- @file Test case for multilingual taxonomy
Code
function drupalCreateVocabulary($vocab = array()) {
$vocab += array(
'name' => $this
->randomName(10),
'description' => $this
->randomName(20),
);
taxonomy_vocabulary_save($vocab);
return (object) $vocab;
}