You are here

protected function HelpTest::setUp in Drupal 9

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

Overrides BrowserTestBase::setUp

File

core/modules/help/tests/src/Functional/HelpTest.php, line 48

Class

HelpTest
Verify help display and user access to help based on permissions.

Namespace

Drupal\Tests\help\Functional

Code

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

  // Create users.
  $this->adminUser = $this
    ->drupalCreateUser([
    'access administration pages',
    'view the administration theme',
    'administer permissions',
  ]);
  $this->anyUser = $this
    ->drupalCreateUser([]);
}