function TaxonomyMenuConfigurationTest::setUp in Taxonomy menu 7.2
Implementation of setUp().
Overrides DrupalWebTestCase::setUp
File
- tests/
taxonomy_menu.test, line 462 - Defines abstract base test class for the Taxonomy menu module tests.
Class
- TaxonomyMenuConfigurationTest
- Tests Taxonomy menu configuration options.
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();
}