You are here

public function TaxonomyMenuCustomPathConfigurationTest::setUp in Taxonomy menu 7.2

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

File

taxonomy_menu_custom_paths/tests/taxonomy_menu_custom_paths.test, line 107
Tests for taxonomy_menu_custom_paths.module.

Class

TaxonomyMenuCustomPathConfigurationTest
Tests Taxonomy Menu Custom Path configuration options.

Code

public function setUp() {
  parent::setUp(array(
    'taxonomy_menu_custom_paths',
    'taxonomy_menu_dummy_paths',
  ));

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