function ItemLayoutFieldBlockTest::setUp
Overrides BrowserTestBase::setUp
File
- 
              core/
modules/ layout_builder/ tests/ src/ FunctionalJavascript/ ItemLayoutFieldBlockTest.php, line 33  
Class
- ItemLayoutFieldBlockTest
 - Field blocks tests for the override layout.
 
Namespace
Drupal\Tests\layout_builder\FunctionalJavascriptCode
protected function setUp() : void {
  parent::setUp();
  $this->drupalLogin($this->drupalCreateUser([
    'configure any layout',
  ]));
  // We need more then one content type for this test.
  $this->createContentType([
    'type' => 'bundle_with_layout_overrides',
  ]);
  LayoutBuilderEntityViewDisplay::load('node.bundle_with_layout_overrides.default')->enableLayoutBuilder()
    ->setOverridable()
    ->save();
  $this->createContentType([
    'type' => 'filler_bundle',
  ]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.