You are here

protected function LayoutBuilderQuickEditTest::setUp in Drupal 10

Same name in this branch
  1. 10 core/modules/quickedit/tests/src/Functional/LayoutBuilderQuickEditTest.php \Drupal\Tests\quickedit\Functional\LayoutBuilderQuickEditTest::setUp()
  2. 10 core/modules/quickedit/tests/src/FunctionalJavascript/LayoutBuilderQuickEditTest.php \Drupal\Tests\quickedit\FunctionalJavascript\LayoutBuilderQuickEditTest::setUp()
Same name and namespace in other branches
  1. 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\Functional

Code

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();
}