protected function LayoutBuilderStyleRestrictionsTest::setUp in Layout Builder Styles 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ LayoutBuilderStyleRestrictionsTest.php, line 37
Class
- LayoutBuilderStyleRestrictionsTest
- Tests the Layout Builder Styles apply as expected.
Namespace
Drupal\Tests\layout_builder_styles\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this
->drupalPlaceBlock('local_tasks_block');
// Create two nodes.
$this
->createContentType([
'type' => 'bundle_with_section_field',
'name' => 'Bundle with section field',
]);
LayoutBuilderEntityViewDisplay::load('node.bundle_with_section_field.default')
->enableLayoutBuilder()
->setOverridable()
->save();
}