function NodeAccessRebuildNodeGrantsTest::setUp

Same name in other branches
  1. 8.9.x core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php \Drupal\Tests\node\Functional\NodeAccessRebuildNodeGrantsTest::setUp()
  2. 10 core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php \Drupal\Tests\node\Functional\NodeAccessRebuildNodeGrantsTest::setUp()
  3. 11.x core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php \Drupal\Tests\node\Functional\NodeAccessRebuildNodeGrantsTest::setUp()

Overrides NodeTestBase::setUp

File

core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php, line 36

Class

NodeAccessRebuildNodeGrantsTest
Tests node access rebuild functions with multiple node access modules.

Namespace

Drupal\Tests\node\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $this->adminUser = $this->drupalCreateUser([
        'administer site configuration',
        'access administration pages',
        'access site reports',
    ]);
    $this->drupalLogin($this->adminUser);
    $this->webUser = $this->drupalCreateUser();
}

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