You are here

protected function HttpResponseHeadersUITestCase::setUp in HTTP Response Headers 7

Sets up test environment.

Overrides DrupalWebTestCase::setUp

File

modules/http_response_headers_ui/http_response_headers_ui.test, line 28
Tests for http_response_headers_ui.module.

Class

HttpResponseHeadersUITestCase
@file Tests for http_response_headers_ui.module.

Code

protected function setUp() {
  parent::setUp('http_response_headers_ui');

  // 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();
}