function HttpResponseDebugCacheabilityHeadersTest::register
Same name and namespace in other branches
- 11.x core/tests/Drupal/KernelTests/Core/EventSubscriber/HttpResponseDebugCacheabilityHeadersTest.php \Drupal\KernelTests\Core\EventSubscriber\HttpResponseDebugCacheabilityHeadersTest::register()
File
-
core/
tests/ Drupal/ KernelTests/ Core/ EventSubscriber/ HttpResponseDebugCacheabilityHeadersTest.php, line 27
Class
- HttpResponseDebugCacheabilityHeadersTest
- Tests that debug cacheability header lines do not exceed Apache limit.
Namespace
Drupal\KernelTests\Core\EventSubscriberCode
public function register(ContainerBuilder $container) : void {
parent::register($container);
$container->setParameter('http.response.debug_cacheability_headers', TRUE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.