function LayoutBuilderOverridesEditingThemeTest::setUp

Same name in other branches
  1. 10 core/modules/layout_builder/tests/src/Functional/LayoutBuilderOverridesEditingThemeTest.php \Drupal\Tests\layout_builder\Functional\LayoutBuilderOverridesEditingThemeTest::setUp()

Overrides LayoutBuilderTestBase::setUp

File

core/modules/layout_builder/tests/src/Functional/LayoutBuilderOverridesEditingThemeTest.php, line 61

Class

LayoutBuilderOverridesEditingThemeTest
Tests overrides editing uses the correct theme.

Namespace

Drupal\Tests\layout_builder\Functional

Code

protected function setUp() : void {
    parent::setUp();
    // Create a basic block content type.
    BlockContentType::create([
        'id' => 'basic',
        'label' => 'Basic',
        'revision' => FALSE,
    ])->save();
    $this->adminUser = $this->drupalCreateUser($this->permissions);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.