private function TagadelicTaxonomyTestCase::createVocAndTags in Tagadelic 7.2
11 calls to TagadelicTaxonomyTestCase::createVocAndTags()
- TagadelicTaxonomyTestCase::testAttachesCssOnlyToCloudPages in tests/
tagadelic_taxonomy.test - TagadelicTaxonomyTestCase::testAttachesCssToPage in tests/
tagadelic_taxonomy.test - TagadelicTaxonomyTestCase::testBlockHasMaxTwelveTags in tests/
tagadelic_taxonomy.test - TagadelicTaxonomyTestCase::testBlockHasMoreLinkToPage in tests/
tagadelic_taxonomy.test - TagadelicTaxonomyTestCase::testHasClickableLink in tests/
tagadelic_taxonomy.test
File
- tests/
tagadelic_taxonomy.test, line 182
Class
Code
private function createVocAndTags($amount_of_tags, $create_node = TRUE) {
$tx_test = new TaxonomyWebTestCase();
$this->tags = array();
$this->vocabulary = $tx_test
->createVocabulary();
for ($i = 0; $i < $amount_of_tags; $i++) {
$this->tags[] = $tx_test
->createTerm($this->vocabulary);
}
if ($create_node) {
$this
->createNodesWithTags(1);
}
return $this;
}