protected function HttpResponseHeadersTestCase::setUp in HTTP Response Headers 7
Sets up test environment.
Overrides DrupalWebTestCase::setUp
File
- ./
http_response_headers.test, line 28 - Tests for http_response_headers.module.
Class
- HttpResponseHeadersTestCase
- @file Tests for http_response_headers.module.
Code
protected function setUp() {
parent::setUp('http_response_headers');
// Create and log in an administrative user.
$this->adminUser = $this
->drupalCreateUser(array(
'administer http response headers',
'access administration pages',
));
$this
->drupalLogin($this->adminUser);
// Set up default header list on configuration page.
$this
->setupDefaultConfiguration();
}