You are here

protected function NodeRevisionsUiBypassAccessTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 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\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',
  ]);
}