You are here

function TaxonomyMenuUnitTest::setUp in Taxonomy menu 7.2

Same name and namespace in other branches
  1. 7 taxonomy_menu.test \TaxonomyMenuUnitTest::setUp()

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

File

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

Class

TaxonomyMenuUnitTest
Tests for taxonomy vocabulary functions.

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