You are here

protected function AutoEntityLabelPermissionControllerTest::setUp in Automatic Entity Label 8.3

Overrides EntityKernelTestBase::setUp

File

tests/src/Kernel/AutoEntityLabelPermissionControllerTest.php, line 47

Class

AutoEntityLabelPermissionControllerTest
Tests AutoEntityLabelPermissionController methods.

Namespace

Drupal\Tests\auto_entitylabel\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('node');
  $this
    ->installSchema('user', 'users_data');
  $this
    ->installSchema('node', [
    'node_access',
  ]);
  $this
    ->installConfig(self::$modules);
  $this->nodeType = $this
    ->createContentType([
    'type' => 'page',
  ]);
  $this->autoEntityLabelPermissionController = new AutoEntityLabelPermissionController($this->container
    ->get('entity_type.manager'));
}