You are here

protected function AutoEntityLabelTest::setUp in Automatic Entity Label 8.3

Overrides EntityKernelTestBase::setUp

File

tests/src/Kernel/AutoEntityLabelTest.php, line 53

Class

AutoEntityLabelTest
Tests for auto entity label.

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->configFactory = $this->container
    ->get('config.factory');
}