protected function TaxonomyTermFormTest::setUp in URL Alias Permissions 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ TaxonomyTermFormTest.php, line 61
Class
- TaxonomyTermFormTest
- Test url_alias_permissions with taxonomy terms.
Namespace
Drupal\Tests\url_alias_permissions\FunctionalCode
protected function setUp() : void {
parent::setup();
$this->vocabulary = $this
->createVocabulary();
$this->userWithUrlAliasPermissions = $this
->drupalCreateUser([
'create terms in ' . $this->vocabulary
->id(),
'edit terms in ' . $this->vocabulary
->id(),
'create url aliases',
'edit ' . $this->vocabulary
->id() . ' taxonomy_term url alias',
]);
$this->userWithoutUrlAliasPermissions = $this
->drupalCreateUser([
'create terms in ' . $this->vocabulary
->id(),
'edit terms in ' . $this->vocabulary
->id(),
]);
$this->taxonomyTermStorage = $this->container
->get('entity_type.manager')
->getStorage('taxonomy_term');
}