You are here

protected function WebTestBase::setHttpResponseDebugCacheabilityHeaders in SimpleTest 8.3

Enables/disables the cacheability headers.

Sets the http.response.debug_cacheability_headers container parameter.

Parameters

bool $value: (optional) Whether the debugging cacheability headers should be sent.

File

src/WebTestBase.php, line 2078

Class

WebTestBase
Test case for typical Drupal tests.

Namespace

Drupal\simpletest

Code

protected function setHttpResponseDebugCacheabilityHeaders($value = TRUE) {
  $this
    ->setContainerParameter('http.response.debug_cacheability_headers', $value);
  $this
    ->rebuildContainer();
  $this
    ->resetAll();
}