function ClaroLayoutBuilderTest::setUp
Same name in other branches
- 9 core/tests/Drupal/FunctionalTests/Theme/ClaroLayoutBuilderTest.php \Drupal\FunctionalTests\Theme\ClaroLayoutBuilderTest::setUp()
- 8.9.x core/tests/Drupal/FunctionalTests/Theme/ClaroLayoutBuilderTest.php \Drupal\FunctionalTests\Theme\ClaroLayoutBuilderTest::setUp()
- 11.x core/tests/Drupal/FunctionalTests/Theme/ClaroLayoutBuilderTest.php \Drupal\FunctionalTests\Theme\ClaroLayoutBuilderTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
tests/ Drupal/ FunctionalTests/ Theme/ ClaroLayoutBuilderTest.php, line 39
Class
- ClaroLayoutBuilderTest
- Tests the layout builder with the Claro theme.
Namespace
Drupal\FunctionalTests\ThemeCode
protected function setUp() : void {
parent::setUp();
$this->drupalPlaceBlock('local_tasks_block', [
'region' => 'header',
]);
// Create two nodes.
$this->createContentType([
'type' => 'bundle_with_section_field',
'name' => 'Bundle with section field',
]);
$this->createNode([
'type' => 'bundle_with_section_field',
'title' => 'The first node title',
'body' => [
[
'value' => 'The first node body',
],
],
]);
$this->createNode([
'type' => 'bundle_with_section_field',
'title' => 'The second node title',
'body' => [
[
'value' => 'The second node body',
],
],
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.