function NodeDeleteConfirmTest::setUp

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

Overrides BrowserTestBase::setUp

File

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

Class

NodeDeleteConfirmTest
Tests JavaScript functionality specific to delete operations.

Namespace

Drupal\Tests\node\FunctionalJavascript

Code

protected function setUp() : void {
    parent::setUp();
    $this->drupalCreateContentType([
        'name' => 'Article',
        'type' => 'article',
    ]);
    $admin_user = $this->drupalCreateUser([
        'access content',
        'access content overview',
        'administer content types',
        'edit any article content',
        'delete any article content',
    ]);
    $this->drupalLogin($admin_user);
}

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