function NodeRevisionsUiBypassAccessTest::setUp

Same name in other branches
  1. 9 core/modules/node/tests/src/Functional/NodeRevisionsUiBypassAccessTest.php \Drupal\Tests\node\Functional\NodeRevisionsUiBypassAccessTest::setUp()
  2. 8.9.x core/modules/node/tests/src/Functional/NodeRevisionsUiBypassAccessTest.php \Drupal\Tests\node\Functional\NodeRevisionsUiBypassAccessTest::setUp()
  3. 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 40

Class

NodeRevisionsUiBypassAccessTest
Tests the revision tab display.

Namespace

Drupal\Tests\node\Functional

Code

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.