protected function NodeAccessRebuildNodeGrantsTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 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\FunctionalCode
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();
}