function i18n_Taxonomy_Test::drupalCreateVocabulary in Internationalization 6
1 call to i18n_Taxonomy_Test::drupalCreateVocabulary()
File
- tests/
i18n_taxonomy.test, line 43
Class
Code
function drupalCreateVocabulary($vocab = array()) {
$vocab += array(
'name' => $this
->randomName(10),
'description' => $this
->randomName(20),
);
taxonomy_save_vocabulary($vocab);
return (object) $vocab;
}