function TextareaWithSummaryTest::setUp

Overrides BrowserTestBase::setUp

File

core/modules/text/tests/src/Functional/TextareaWithSummaryTest.php, line 31

Class

TextareaWithSummaryTest
Tests the functionality of the text_textarea_with_summary widget.

Namespace

Drupal\Tests\text\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this->drupalCreateContentType([
    'type' => 'page',
  ]);
  $account = $this->drupalCreateUser([
    'create page content',
    'edit own page content',
  ]);
  $this->drupalLogin($account);
}

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