You are here

function TaxonomyMenuFunctionalTest::setUp in Taxonomy menu 7.2

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

File

tests/taxonomy_menu.test, line 181
Defines abstract base test class for the Taxonomy menu module tests.

Class

TaxonomyMenuFunctionalTest
Tests the taxonomy vocabulary interface.

Code

function setUp() {
  parent::setUp(array(
    'taxonomy_menu',
  ));

  // Create and login an admin user.
  $admin_user = $this
    ->drupalCreateUser(array(
    'administer taxonomy',
    'administer menu',
    'bypass node access',
  ));
  $this
    ->drupalLogin($admin_user);

  // Create a vocabulary and a hierarchy of taxonomy terms for it.
  $this->vocabulary = $this
    ->createVocabulary();
  $this->terms_hierarchy = $this
    ->createTermsHierarchy();
}