function NodeAccessPagerTest::setUp
Same name in other branches
- 9 core/modules/node/tests/src/Functional/NodeAccessPagerTest.php \Drupal\Tests\node\Functional\NodeAccessPagerTest::setUp()
- 10 core/modules/node/tests/src/Functional/NodeAccessPagerTest.php \Drupal\Tests\node\Functional\NodeAccessPagerTest::setUp()
- 10 core/modules/forum/tests/src/Functional/NodeAccessPagerTest.php \Drupal\Tests\forum\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 31
Class
- NodeAccessPagerTest
- Tests access controlled node views have the right amount of comment pages.
Namespace
Drupal\Tests\node\FunctionalCode
protected function setUp() {
parent::setUp();
node_access_rebuild();
$this->drupalCreateContentType([
'type' => 'page',
'name' => t('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.