function LayoutBuilderQuickEditTest::setUp
Same name in this branch
- 9 core/modules/quickedit/tests/src/FunctionalJavascript/LayoutBuilderQuickEditTest.php \Drupal\Tests\quickedit\FunctionalJavascript\LayoutBuilderQuickEditTest::setUp()
Same name in other branches
- 8.9.x core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderQuickEditTest.php \Drupal\Tests\layout_builder\FunctionalJavascript\LayoutBuilderQuickEditTest::setUp()
- 8.9.x core/modules/layout_builder/tests/src/Functional/LayoutBuilderQuickEditTest.php \Drupal\Tests\layout_builder\Functional\LayoutBuilderQuickEditTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ quickedit/ tests/ src/ Functional/ LayoutBuilderQuickEditTest.php, line 33
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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.