You are here

function ABTEnviromentTestCase::envTestVocabularyCreation in Access By Term 7

1 call to ABTEnviromentTestCase::envTestVocabularyCreation()
ABTEnviromentTestCase::testEnviroment in ./abt.test

File

./abt.test, line 166

Class

ABTEnviromentTestCase

Code

function envTestVocabularyCreation() {
  for ($i = 0; $i < count($this->vocabularies); $i++) {
    $loaded = taxonomy_vocabulary_load($this->vocabularies[$i]->vid);
    $this
      ->assertEqual($loaded->name, $this->vocabularies[$i]->name, t("Vocabulary %vid was created.", array(
      '%vid' => $loaded->vid,
    )));
  }
}