function InlineFormErrorsIntegrationTest::setUp

Overrides BrowserTestBase::setUp

File

core/modules/quickedit/tests/src/FunctionalJavascript/InlineFormErrorsIntegrationTest.php, line 42

Class

InlineFormErrorsIntegrationTest
Tests Inline Form Errors compatibility with Quick Edit.

Namespace

Drupal\Tests\quickedit\FunctionalJavascript

Code

protected function setUp() : void {
    parent::setUp();
    // Create a page node type for testing.
    NodeType::create([
        'type' => 'page',
        'name' => 'page',
    ])->save();
    // Create a user with the permission to use in-place editing.
    $permissions = [
        'access content',
        'create page content',
        'edit any page content',
        'access contextual links',
        'access in-place editing',
    ];
    $this->editorUser = $this->drupalCreateUser($permissions);
    $this->drupalLogin($this->editorUser);
}

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