function LayoutBuilderRevisionTest::setUp
Overrides BrowserTestBase::setUp
File
-
core/
modules/ layout_builder/ tests/ src/ Functional/ LayoutBuilderRevisionTest.php, line 37
Class
- LayoutBuilderRevisionTest
- Tests that entity revisions work with Layout Builder.
Namespace
Drupal\Tests\layout_builder\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this->drupalPlaceBlock('local_tasks_block');
// Create a node.
$this->createContentType([
'type' => 'bundle_with_section_field',
'name' => 'Bundle with section field',
'new_revision' => TRUE,
]);
$this->createNode([
'type' => 'bundle_with_section_field',
'title' => 'The first node title',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.