You are here

public function ContentEntityPathTest::setUp in Translation Management Tool 8

Overrides ContentEntityTestBase::setUp

File

sources/content/tests/src/Kernel/ContentEntityPathTest.php, line 36

Class

ContentEntityPathTest
Tests for the path/pathauto integration.

Namespace

Drupal\Tests\tmgmt_content\Kernel

Code

public function setUp() : void {
  parent::setUp();
  $this
    ->installSchema('node', [
    'node_access',
  ]);
  $this
    ->installEntitySchema('path_alias');
  $type = NodeType::create([
    'type' => 'page',
    'name' => 'Page',
  ]);
  $type
    ->save();
  $this->container
    ->get('content_translation.manager')
    ->setEnabled('node', 'page', TRUE);
}