public function VarnishTestCase::setUpVariables in Varnish 7
Same name and namespace in other branches
- 6 varnish.test \VarnishTestCase::setUpVariables()
Set up variables so that drupal sends out appropriate headers to Varnish.
1 call to VarnishTestCase::setUpVariables()
- VarnishTestCase::setUp in ./
varnish.test - Sets up a Drupal site for running functional and integration tests.
File
- ./
varnish.test, line 22 - Tests the basic functionality of Varnish.
Class
- VarnishTestCase
- Base class for Varnish Test Cases.
Code
public function setUpVariables() {
$variables = array(
'cache' => 1,
'cache_lifetime' => 0,
'page_cache_maximum_age' => 1800,
);
foreach ($variables as $key => $variable) {
variable_set($key, $variable);
}
$this
->refreshVariables();
}