function TaxonomyMenuFunctionalTest::setUp in Taxonomy menu 8
Implementation of setUp().
Overrides TaxonomyTestBase::setUp
File
- lib/
Drupal/ taxonomy_menu/ Tests/ TaxonomyMenuFunctionalTest.php, line 29 - Contains \Drupal\taxonomy_menu\Tests\TaxonomyMenuFunctionalTest.
Class
- TaxonomyMenuFunctionalTest
- Tests the taxonomy vocabulary interface.
Namespace
Drupal\taxonomy_menu\TestsCode
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();
}