function CollapsedSummariesTest::setUp

Same name in other branches
  1. 9 core/modules/node/tests/src/FunctionalJavascript/CollapsedSummariesTest.php \Drupal\Tests\node\FunctionalJavascript\CollapsedSummariesTest::setUp()
  2. 11.x core/modules/node/tests/src/FunctionalJavascript/CollapsedSummariesTest.php \Drupal\Tests\node\FunctionalJavascript\CollapsedSummariesTest::setUp()

Overrides BrowserTestBase::setUp

File

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

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',
    ]));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.