function TextareaWithSummaryTest::setUp

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

Overrides BrowserTestBase::setUp

File

core/modules/text/tests/src/FunctionalJavascript/TextareaWithSummaryTest.php, line 28

Class

TextareaWithSummaryTest
Tests the JavaScript functionality of the text_textarea_with_summary widget.

Namespace

Drupal\Tests\text\FunctionalJavascript

Code

protected function setUp() {
    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.