You are here

protected function SecuritytxtBaseTest::setUp in Security.txt 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/SecuritytxtBaseTest.php, line 53

Class

SecuritytxtBaseTest
Defines a base class for testing the Security.txt module.

Namespace

Drupal\Tests\securitytxt\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->authenticatedUser = $this
    ->drupalCreateUser([]);
  $this->viewPermissionUser = $this
    ->drupalCreateUser([
    'view securitytxt',
  ]);
  $this->administerPermissionUser = $this
    ->drupalCreateUser([
    'administer securitytxt',
  ]);
  $this->viewAndAdministerPermissionUser = $this
    ->drupalCreateUser([
    'view securitytxt',
    'administer securitytxt',
  ]);
}