You are here

function i18n_Taxonomy_Test::drupalCreateVocabulary in Internationalization 6

1 call to i18n_Taxonomy_Test::drupalCreateVocabulary()
i18n_Taxonomy_Test::testTaxonomyTranslationAPI in tests/i18n_taxonomy.test

File

tests/i18n_taxonomy.test, line 43

Class

i18n_Taxonomy_Test

Code

function drupalCreateVocabulary($vocab = array()) {
  $vocab += array(
    'name' => $this
      ->randomName(10),
    'description' => $this
      ->randomName(20),
  );
  taxonomy_save_vocabulary($vocab);
  return (object) $vocab;
}