public function SecuritytxtModuleDisabledTestCase::setUp in Security.txt 7
Enable modules and create users with specific permissions.
Overrides DrupalWebTestCase::setUp
File
- ./
securitytxt.test, line 36 - Tests for securitytxt.module.
Class
- SecuritytxtModuleDisabledTestCase
- Test case with the Security.txt module disabled.
Code
public function setUp() {
// Add modules not enabled in a standard (not minimal) drupal install.
parent::setUp();
// Create users.
$this->authenticatedUser = $this
->drupalCreateUser();
$this->administratorUser = $this
->drupalCreateUser(array(
'access administration pages',
));
}