You are here

function authcache_test_add_cookie in Authenticated User Page Caching (Authcache) 7.2

Add a cookie to the response.

4 string references to 'authcache_test_add_cookie'
AuthcacheCookiesTestCase::testCookieFunction in ./authcache.test
Tests for authcache_add_cookie function.
AuthcacheCookiesTestCase::testCookieOnSubsequentRequests in ./authcache.test
Ensure that cookies are set only if necessary on repeating requests.
AuthcacheWebTestCase::resetTestVariables in ./authcache.test
Reset the variables used for communicating to authcache_test module.
authcache_test_menu in tests/authcache_test.module
Implements hook_menu().

File

tests/authcache_test.module, line 283
Mock module to aid in testing authcache.module.

Code

function authcache_test_add_cookie() {
  authcache_add_cookie(variable_get('authcache_test_add_cookie'));
  drupal_exit();
}