protected function NodeOwnerTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/node/tests/src/Kernel/NodeOwnerTest.php \Drupal\Tests\node\Kernel\NodeOwnerTest::setUp()
- 9 core/modules/node/tests/src/Kernel/NodeOwnerTest.php \Drupal\Tests\node\Kernel\NodeOwnerTest::setUp()
File
- core/
modules/ node/ tests/ src/ Kernel/ NodeOwnerTest.php, line 25
Class
- NodeOwnerTest
- Tests node owner functionality.
Namespace
Drupal\Tests\node\KernelCode
protected function setUp() : void {
parent::setUp();
// Create the node bundles required for testing.
$type = NodeType::create([
'type' => 'page',
'name' => 'page',
]);
$type
->save();
// Enable two additional languages.
ConfigurableLanguage::createFromLangcode('de')
->save();
ConfigurableLanguage::createFromLangcode('it')
->save();
$this
->installSchema('node', 'node_access');
}