You are here

protected function SevenLayoutBuilderTest::setUp in Drupal 10

Overrides BrowserTestBase::setUp

File

core/themes/seven/tests/src/Functional/SevenLayoutBuilderTest.php, line 38

Class

SevenLayoutBuilderTest
Tests the Seven theme.

Namespace

Drupal\Tests\seven\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->drupalPlaceBlock('page_title_block', [
    'region' => 'header',
  ]);
  $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',
      ],
    ],
  ]);
}