You are here

protected function HttpResponseHeadersUITestCase::setupDefaultConfiguration in HTTP Response Headers 7

Setup default configuration for HTTP response headers.

1 call to HttpResponseHeadersUITestCase::setupDefaultConfiguration()
HttpResponseHeadersUITestCase::setUp in modules/http_response_headers_ui/http_response_headers_ui.test
Sets up test environment.

File

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

Class

HttpResponseHeadersUITestCase
@file Tests for http_response_headers_ui.module.

Code

protected function setupDefaultConfiguration() {
  $edit['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.
  $edit['http_response_headers_exclude_pages'] = 'admin*';
  $this
    ->drupalPost('admin/config/system/http-response-headers/settings', $edit, t('Save configuration'));
}