function ItemLayoutFieldBlockTest::setUp
Same name in other branches
- 8.9.x core/modules/layout_builder/tests/src/FunctionalJavascript/ItemLayoutFieldBlockTest.php \Drupal\Tests\layout_builder\FunctionalJavascript\ItemLayoutFieldBlockTest::setUp()
- 10 core/modules/layout_builder/tests/src/FunctionalJavascript/ItemLayoutFieldBlockTest.php \Drupal\Tests\layout_builder\FunctionalJavascript\ItemLayoutFieldBlockTest::setUp()
- 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 31
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.