function LayoutBuilderRevisionTest::setUp
Same name and namespace in other branches
- 11.x core/modules/layout_builder/tests/src/Functional/LayoutBuilderRevisionTest.php \Drupal\Tests\layout_builder\Functional\LayoutBuilderRevisionTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ layout_builder/ tests/ src/ Functional/ LayoutBuilderRevisionTest.php, line 43
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',
]);
$this->createBlockContentType([
'id' => 'basic',
'label' => 'Basic block',
'revision' => 1,
], TRUE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.