1 token.test | TokenTaxonomyTestCase::testVocabularyTokens() |
Test the additional vocabulary tokens.
File
- core/
modules/ simpletest/ tests/ token.test, line 693 - Test integration for the token module.
Class
Code
function testVocabularyTokens() {
$vocabulary = $this->vocab;
$tokens = array(
'machine-name' => 'tags',
'edit-url' => url("admin/structure/taxonomy/{$vocabulary->machine_name}/edit", array('absolute' => TRUE)),
);
$this->assertTokens('vocabulary', array('vocabulary' => $vocabulary), $tokens);
}