protected function LayoutBuilderQuickEditTest::setUp in Drupal 10
Same name in this branch
- 10 core/modules/quickedit/tests/src/Functional/LayoutBuilderQuickEditTest.php \Drupal\Tests\quickedit\Functional\LayoutBuilderQuickEditTest::setUp()
- 10 core/modules/quickedit/tests/src/FunctionalJavascript/LayoutBuilderQuickEditTest.php \Drupal\Tests\quickedit\FunctionalJavascript\LayoutBuilderQuickEditTest::setUp()
Same name and namespace in other branches
- 9 core/modules/quickedit/tests/src/Functional/LayoutBuilderQuickEditTest.php \Drupal\Tests\quickedit\Functional\LayoutBuilderQuickEditTest::setUp()
File
- core/
modules/ quickedit/ tests/ src/ Functional/ LayoutBuilderQuickEditTest.php, line 32
Class
- LayoutBuilderQuickEditTest
- Tests Layout Builder integration with Quick Edit.
Namespace
Drupal\Tests\quickedit\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Create two nodes.
$this
->createContentType([
'type' => 'bundle_with_section_field',
'name' => 'Bundle with section field',
]);
$this
->createNode([
'type' => 'bundle_with_section_field',
]);
LayoutBuilderEntityViewDisplay::load('node.bundle_with_section_field.default')
->enableLayoutBuilder()
->setOverridable()
->save();
}