function PathItemTest::setUp
Same name in other branches
- 9 core/modules/path/tests/src/Kernel/PathItemTest.php \Drupal\Tests\path\Kernel\PathItemTest::setUp()
- 8.9.x core/modules/path/tests/src/Kernel/PathItemTest.php \Drupal\Tests\path\Kernel\PathItemTest::setUp()
- 11.x core/modules/path/tests/src/Kernel/PathItemTest.php \Drupal\Tests\path\Kernel\PathItemTest::setUp()
Overrides KernelTestBase::setUp
File
-
core/
modules/ path/ tests/ src/ Kernel/ PathItemTest.php, line 37
Class
- PathItemTest
- Tests loading and storing data using PathItem.
Namespace
Drupal\Tests\path\KernelCode
protected function setUp() : void {
parent::setUp();
$this->installEntitySchema('node');
$this->installEntitySchema('user');
$this->installEntitySchema('path_alias');
$this->installSchema('node', [
'node_access',
]);
NodeType::create([
'type' => 'foo',
'name' => 'Foo',
])->save();
$this->installConfig([
'language',
]);
ConfigurableLanguage::createFromLangcode('de')->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.