function TaxonomyVocabularyTestCase::setUp

Overrides DrupalWebTestCase::setUp

File

modules/taxonomy/taxonomy.test, line 213

Class

TaxonomyVocabularyTestCase
Tests for taxonomy vocabulary functions.

Code

function setUp() {
    parent::setUp('taxonomy', 'field_test');
    $admin_user = $this->drupalCreateUser(array(
        'create article content',
        'administer taxonomy',
    ));
    $this->drupalLogin($admin_user);
    $this->vocabulary = $this->createVocabulary();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.