function PathTaxonomyTermTest::setUp
Overrides PathTestBase::setUp
File
-
core/
modules/ path/ tests/ src/ Functional/ PathTaxonomyTermTest.php, line 29
Class
- PathTaxonomyTermTest
- Tests URL aliases for taxonomy terms.
Namespace
Drupal\Tests\path\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Create a Tags vocabulary for the Article node type.
$vocabulary = Vocabulary::create([
'name' => 'Tags',
'vid' => 'tags',
]);
$vocabulary->save();
// Create and log in user.
$web_user = $this->drupalCreateUser([
'administer url aliases',
'administer taxonomy',
'access administration pages',
]);
$this->drupalLogin($web_user);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.