You are here

public function TaxonomyMenuCustomPathConfigurationTest::setUp in Taxonomy menu 8

Implementation of setUp().

Overrides TaxonomyTestBase::setUp

File

lib/Drupal/taxonomy_menu/Tests/TaxonomyMenuCustomPathConfigurationTest.php, line 39
Contains \Drupal\taxonomy_menu\Tests\TaxonomyMenuCustomPathConfigurationTest.

Class

TaxonomyMenuCustomPathConfigurationTest
Tests Taxonomy Menu Custom Path configuration options.

Namespace

Drupal\taxonomy_menu\Tests

Code

public function setUp() {
  parent::setUp();

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