protected function EntityWithoutBundleFormTest::setUp in URL Alias Permissions 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ EntityWithoutBundleFormTest.php, line 51
Class
- EntityWithoutBundleFormTest
- Test url_alias_permissions with an entity without bundles.
Namespace
Drupal\Tests\url_alias_permissions\FunctionalCode
protected function setUp() : void {
parent::setup();
$this->userWithUrlAliasPermissions = $this
->drupalCreateUser([
'administer entity_test content',
'create url aliases',
'edit entity_test url alias',
'view test entity',
]);
$this->userWithoutUrlAliasPermissions = $this
->drupalCreateUser([
'administer entity_test content',
'view test entity',
]);
$this->entityTestStorage = $this->container
->get('entity_type.manager')
->getStorage('entity_test');
}