public function TaxonomyMenuCustomPathFunctionalTest::setUp in Taxonomy menu 7.2
Implementation of setUp().
Overrides DrupalWebTestCase::setUp
File
- taxonomy_menu_custom_paths/
tests/ taxonomy_menu_custom_paths.test, line 27 - Tests for taxonomy_menu_custom_paths.module.
Class
- TaxonomyMenuCustomPathFunctionalTest
- Tests the taxonomy vocabulary interface.
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();
}