protected function UrlAliasPermissionsTest::setUp in URL Alias Permissions 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ UrlAliasPermissionsTest.php, line 77
Class
- UrlAliasPermissionsTest
- Tests the UrlAliasPermPermissions class.
Namespace
Drupal\Tests\url_alias_permissions\KernelCode
protected function setUp() : void {
parent::setUp();
$this
->installEntitySchema('node');
$this
->installEntitySchema('user');
$this
->installEntitySchema('entity_test');
$this
->installSchema('node', 'node_access');
$this
->installConfig('node');
$this
->installConfig('filter');
$this->entityFieldManager = $this->container
->get('entity_field.manager');
$this->entityTypeBundleInfo = $this->container
->get('entity_type.bundle.info');
$this->entityTypeManager = $this->container
->get('entity_type.manager');
$this->urlAliasPermPermissions = new UrlAliasPermPermissions($this->entityFieldManager, $this->entityTypeBundleInfo, $this->entityTypeManager);
$this->nodeTypeStorage = $this->entityTypeManager
->getStorage('node_type');
}