You are here

protected function HttpResponseHeadersTestCase::setupDefaultConfiguration in HTTP Response Headers 7

Setup default configuration for HTTP response headers.

1 call to HttpResponseHeadersTestCase::setupDefaultConfiguration()
HttpResponseHeadersTestCase::setUp in ./http_response_headers.test
Sets up test environment.

File

./http_response_headers.test, line 156
Tests for http_response_headers.module.

Class

HttpResponseHeadersTestCase
@file Tests for http_response_headers.module.

Code

protected function setupDefaultConfiguration() {
  variable_set('http_response_headers_allowed_headers', array(
    'Cache-Control' => 'Cache-Control',
    'Expires' => 'Expires',
    'X-Frame-Options' => 'X-Frame-Options',
    'Last-Modified' => 'Last-Modified',
  ));

  // Make sure admin pages are excluded globally.
  variable_set('http_response_headers_exclude_pages', 'admin*');
}