function NodeAccessRebuildNodeGrantsTest::setUp

Same name in other branches
  1. 9 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 37

Class

NodeAccessRebuildNodeGrantsTest
Ensures that node access rebuild functions work correctly even when other modules implements hook_node_grants().

Namespace

Drupal\Tests\node\Functional

Code

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