public function TagadelicTaxonomyTestCase::testOnlyHasTagsFromSelectedVocabularies in Tagadelic 7.2
File
- tests/
tagadelic_taxonomy.test, line 103
Class
Code
public function testOnlyHasTagsFromSelectedVocabularies() {
$this
->createVocsAndTags(3, 3);
$this
->createNodesWithTags(100);
$disabled_voc = $this->vocabularies[0];
foreach ($this->vocabularies as $vocabulary) {
if ($disabled_voc->vid == $vocabulary->vid) {
$setting[$vocabulary->vid] = 0;
}
else {
$setting[$vocabulary->vid] = $vocabulary->vid;
}
}
variable_set("tagadelic_taxonomy_vocabularies", $setting);
$this
->refreshVariables();
$this
->drupalGet("tagadelic_taxonomy");
foreach ($this->tags_by_voc[$disabled_voc->vid] as $term) {
$this
->assertNoText($term->name);
}
}