You are here

protected function BlockCreationTest::setUp in Layout Builder UX 8

Overrides InlineBlockTestBase::setUp

File

tests/src/FunctionalJavascript/BlockCreationTest.php, line 33

Class

BlockCreationTest
Tests creating blocks.

Namespace

Drupal\Tests\lb_ux\FunctionalJavascript

Code

protected function setUp() : void {
  parent::setUp();

  // Enable Layout Builder for one content type.
  LayoutBuilderEntityViewDisplay::load('node.bundle_with_section_field.default')
    ->enableLayoutBuilder()
    ->setOverridable()
    ->save();
  $this
    ->drupalLogin($this
    ->createUser([
    'administer node display',
    'configure any layout',
    'create and edit custom blocks',
  ]));
}