function ItemLayoutFieldBlockTest::setUp

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

Overrides BrowserTestBase::setUp

File

core/modules/layout_builder/tests/src/FunctionalJavascript/ItemLayoutFieldBlockTest.php, line 30

Class

ItemLayoutFieldBlockTest
Field blocks tests for the override layout.

Namespace

Drupal\Tests\layout_builder\FunctionalJavascript

Code

protected function setUp() {
    parent::setUp();
    $this->drupalLogin($this->drupalCreateUser([
        'configure any layout',
        'administer node display',
        'administer node fields',
    ]));
    // We need more then one content type for this test.
    $this->createContentType([
        'type' => 'bundle_with_layout_overrides',
    ]);
    $this->createContentType([
        'type' => 'filler_bundle',
    ]);
}

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