private function TagadelicTaxonomyTestCase::createVocsAndTags in Tagadelic 7.2
1 call to TagadelicTaxonomyTestCase::createVocsAndTags()
File
- tests/
tagadelic_taxonomy.test, line 195
Class
Code
private function createVocsAndTags($amount_of_vocs, $amount_of_tags_per_voc) {
$tx_test = new TaxonomyWebTestCase();
$this->tags = array();
$this->tags_by_voc = array();
for ($v = 0; $v < $amount_of_vocs; $v++) {
$voc = $tx_test
->createVocabulary();
$this->vocabularies[] = $voc;
$this->tags_by_voc[$voc->vid] = array();
for ($t = 0; $t < $amount_of_tags_per_voc; $t++) {
$tag = $tx_test
->createTerm($voc);
$this->tags[] = $tag;
$this->tags_by_voc[$voc->vid][] = $tag;
}
}
return $this;
}