You are here

public function SecuritytxtModuleEnabledTestCase::setUp in Security.txt 7

Enable modules and create users with specific permissions.

Overrides DrupalWebTestCase::setUp

File

./securitytxt.test, line 151
Tests for securitytxt.module.

Class

SecuritytxtModuleEnabledTestCase
Test case with the Security.txt module enabled.

Code

public function setUp() {

  // Add modules not enabled in a standard (not minimal) drupal install.
  parent::setUp('securitytxt');

  // Create users.
  $this->authenticatedUser = $this
    ->drupalCreateUser(array(
    'view securitytxt',
  ));
  $this->administratorUser = $this
    ->drupalCreateUser(array(
    'administer securitytxt',
    'access administration pages',
  ));
}