You are here

protected function PathItemTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/path/tests/src/Kernel/PathItemTest.php \Drupal\Tests\path\Kernel\PathItemTest::setUp()
  2. 9 core/modules/path/tests/src/Kernel/PathItemTest.php \Drupal\Tests\path\Kernel\PathItemTest::setUp()

File

core/modules/path/tests/src/Kernel/PathItemTest.php, line 35

Class

PathItemTest
Tests loading and storing data using PathItem.

Namespace

Drupal\Tests\path\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('path_alias');
  $this
    ->installSchema('node', [
    'node_access',
  ]);
  $node_type = NodeType::create([
    'type' => 'foo',
  ]);
  $node_type
    ->save();
  $this
    ->installConfig([
    'language',
  ]);
  ConfigurableLanguage::createFromLangcode('de')
    ->save();
}