protected function SectionSelectionTest::setUp in Layout Builder UX 8
Same name in this branch
- 8 tests/src/Functional/SectionSelectionTest.php \Drupal\Tests\lb_ux\Functional\SectionSelectionTest::setUp()
- 8 tests/src/FunctionalJavascript/SectionSelectionTest.php \Drupal\Tests\lb_ux\FunctionalJavascript\SectionSelectionTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ FunctionalJavascript/ SectionSelectionTest.php, line 32
Class
- SectionSelectionTest
- Tests the section selection UI.
Namespace
Drupal\Tests\lb_ux\FunctionalJavascriptCode
protected function setUp() : void {
parent::setUp();
// Enable Layout Builder for one content type.
$this
->createContentType([
'type' => 'bundle_with_section_field',
]);
LayoutBuilderEntityViewDisplay::load('node.bundle_with_section_field.default')
->enableLayoutBuilder()
->setOverridable()
->save();
$this
->drupalLogin($this
->createUser([
'administer node display',
'configure any layout',
'access site reports',
]));
}