You are here

function TokenTaxonomyTestCase::testVocabularyTokens in Token 7

Test the additional vocabulary tokens.

File

./token.test, line 544
Test integration for the token module.

Class

TokenTaxonomyTestCase

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);
}