You are here

protected function NodeRevisionsUiTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/node/tests/src/Functional/NodeRevisionsUiTest.php \Drupal\Tests\node\Functional\NodeRevisionsUiTest::setUp()

Overrides NodeTestBase::setUp

File

core/modules/node/tests/src/Functional/NodeRevisionsUiTest.php, line 30

Class

NodeRevisionsUiTest
Tests the UI for controlling node revision behavior.

Namespace

Drupal\Tests\node\Functional

Code

protected function setUp() : void {
  parent::setUp();

  // Create users.
  $this->editor = $this
    ->drupalCreateUser([
    'administer nodes',
    'edit any page content',
    'view page revisions',
    'access user profiles',
  ]);
}