function LayoutBuilderToolbarTest::setUp

Same name in other branches
  1. 9 core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderToolbarTest.php \Drupal\Tests\layout_builder\FunctionalJavascript\LayoutBuilderToolbarTest::setUp()
  2. 10 core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderToolbarTest.php \Drupal\Tests\layout_builder\FunctionalJavascript\LayoutBuilderToolbarTest::setUp()
  3. 11.x core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderToolbarTest.php \Drupal\Tests\layout_builder\FunctionalJavascript\LayoutBuilderToolbarTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderToolbarTest.php, line 33

Class

LayoutBuilderToolbarTest
Test Layout Builder integration with Toolbar.

Namespace

Drupal\Tests\layout_builder\FunctionalJavascript

Code

protected function setUp() {
    parent::setUp();
    $this->drupalPlaceBlock('local_tasks_block');
    // Create a content type.
    $this->createContentType([
        'type' => 'bundle_with_section_field',
        'name' => 'Bundle with section field',
    ]);
    $this->createNode([
        'type' => 'bundle_with_section_field',
        'title' => 'The first node title',
        'body' => [
            [
                'value' => 'The first node body',
            ],
        ],
    ]);
}

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