You are here

protected function AuthcacheVarnishTestDefaultValidation::variableSet in Authenticated User Page Caching (Authcache) 7.2

Set a variable without accessing the database.

10 calls to AuthcacheVarnishTestDefaultValidation::variableSet()
AuthcacheVarnishTestDefaultValidation::testNoValidationIfChecksAreDisabled in modules/authcache_varnish/authcache_varnish.test
Ensure that no validation takes place when both mechanisms are turned off.
AuthcacheVarnishTestDefaultValidation::testRejectIfForwardedForEmpty in modules/authcache_varnish/authcache_varnish.test
Request is not comming through varnish if X-Forwarded-For is empty.
AuthcacheVarnishTestDefaultValidation::testRejectIfReverseProxyOff in modules/authcache_varnish/authcache_varnish.test
Request is not comming through varnish if reverse_proxy variable is off.
AuthcacheVarnishTestDefaultValidation::testRejectPassphraseIfNotIdentical in modules/authcache_varnish/authcache_varnish.test
Request has the wrong X-Authcache-Varnish-Passphrase.
AuthcacheVarnishTestDefaultValidation::testValidateCustomClientIPHeader in modules/authcache_varnish/authcache_varnish.test
Test reverse proxy validation when reverse_proxy_header variable is set.

... See full list

File

modules/authcache_varnish/authcache_varnish.test, line 350
Test cases for authcache_varnish module.

Class

AuthcacheVarnishTestDefaultValidation
Unit tests for authcache_varnish_request_validate().

Code

protected function variableSet($name, $value) {
  global $conf;
  $conf[$name] = $value;
}