function NodeRevisionsUiBypassAccessTest::setUp
Same name in other branches
- 8.9.x core/modules/node/tests/src/Functional/NodeRevisionsUiBypassAccessTest.php \Drupal\Tests\node\Functional\NodeRevisionsUiBypassAccessTest::setUp()
- 10 core/modules/node/tests/src/Functional/NodeRevisionsUiBypassAccessTest.php \Drupal\Tests\node\Functional\NodeRevisionsUiBypassAccessTest::setUp()
- 11.x core/modules/node/tests/src/Functional/NodeRevisionsUiBypassAccessTest.php \Drupal\Tests\node\Functional\NodeRevisionsUiBypassAccessTest::setUp()
Overrides NodeTestBase::setUp
File
-
core/
modules/ node/ tests/ src/ Functional/ NodeRevisionsUiBypassAccessTest.php, line 38
Class
- NodeRevisionsUiBypassAccessTest
- Tests the revision tab display.
Namespace
Drupal\Tests\node\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Create a user.
$this->editor = $this->drupalCreateUser([
'administer nodes',
'edit any page content',
'view page revisions',
'bypass node access',
'access user profiles',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.