You are here

protected function CollapsedSummariesTest::setUp in Drupal 9

Overrides BrowserTestBase::setUp

File

core/modules/node/tests/src/FunctionalJavascript/CollapsedSummariesTest.php, line 27

Class

CollapsedSummariesTest
Tests that outlines of node meta values are displayed in summaries and tabs.

Namespace

Drupal\Tests\node\FunctionalJavascript

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->drupalCreateContentType([
    'type' => 'page',
    'name' => 'Basic page',
  ]);
  $this
    ->drupalCreateNode([
    'title' => $this
      ->randomMachineName(),
    'type' => 'page',
  ]);
  $this
    ->drupalLogin($this
    ->createUser([
    'edit any page content',
  ]));
}