function NodeAccessPagerTest::setUp
Same name in this branch
- 10 core/modules/forum/tests/src/Functional/NodeAccessPagerTest.php \Drupal\Tests\forum\Functional\NodeAccessPagerTest::setUp()
Same name in other branches
- 9 core/modules/node/tests/src/Functional/NodeAccessPagerTest.php \Drupal\Tests\node\Functional\NodeAccessPagerTest::setUp()
- 8.9.x core/modules/node/tests/src/Functional/NodeAccessPagerTest.php \Drupal\Tests\node\Functional\NodeAccessPagerTest::setUp()
- 11.x core/modules/node/tests/src/Functional/NodeAccessPagerTest.php \Drupal\Tests\node\Functional\NodeAccessPagerTest::setUp()
- 11.x core/modules/forum/tests/src/Functional/NodeAccessPagerTest.php \Drupal\Tests\forum\Functional\NodeAccessPagerTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ node/ tests/ src/ Functional/ NodeAccessPagerTest.php, line 44
Class
- NodeAccessPagerTest
- Tests access controlled node views have the right amount of comment pages.
Namespace
Drupal\Tests\node\FunctionalCode
protected function setUp() : void {
parent::setUp();
node_access_rebuild();
$this->drupalCreateContentType([
'type' => 'page',
'name' => 'Basic page',
]);
$this->addDefaultCommentField('node', 'page');
$this->webUser = $this->drupalCreateUser([
'access content',
'access comments',
'node test view',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.