You are here

protected function LayoutBuilderStyleTest::setUp in Layout Builder Styles 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/LayoutBuilderStyleTest.php, line 36

Class

LayoutBuilderStyleTest
Tests the Layout Builder Styles apply as expected.

Namespace

Drupal\Tests\layout_builder_styles\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->drupalPlaceBlock('local_tasks_block');

  // Create two nodes.
  $this
    ->createContentType([
    'type' => 'bundle_with_section_field',
    'name' => 'Bundle with section field',
  ]);
  LayoutBuilderEntityViewDisplay::load('node.bundle_with_section_field.default')
    ->enableLayoutBuilder()
    ->setOverridable()
    ->save();
}