You are here

protected function AuthcacheWebTestCase::resetTestVariables in Authenticated User Page Caching (Authcache) 7.2

Reset the variables used for communicating to authcache_test module.

16 calls to AuthcacheWebTestCase::resetTestVariables()
AuthcacheAnonymousKeysTestCase::testCustomKeyGenerator in ./authcache.test
Test custom key generator.
AuthcacheAnonymousKeysTestCase::testDefaultAnonymousKey in ./authcache.test
Test default anonymous key.
AuthcacheAuthenticatedKeysTestCase::testDifferentKeysForDifferentRoles in ./authcache.test
Test different keys for different roles.
AuthcacheAuthenticatedKeysTestCase::testHookAuthcacheKeyProperties in ./authcache.test
Test custom key properties.
AuthcacheAuthenticatedKeysTestCase::testKeyAbbreviation in ./authcache.test
Test key abbreviation (variable authcache_key_abbrev).

... See full list

File

./authcache.test, line 96
Tests for system.module.

Class

AuthcacheWebTestCase
Helper class for module test cases.

Code

protected function resetTestVariables() {
  $testvars = array(
    'authcache_test_add_cookie',
    'authcache_test_authcache_account_exclude',
    'authcache_test_authcache_cancel',
    'authcache_test_authcache_canceled',
    'authcache_test_authcache_cookie',
    'authcache_test_authcache_cookie_alter',
    'authcache_test_authcache_excluded',
    'authcache_test_authcache_key_properties',
    'authcache_test_authcache_preclude',
    'authcache_test_authcache_precluded',
    'authcache_test_authcache_request_exclude',
    'authcache_test_content_type',
    'authcache_test_cookie',
    'authcache_test_cookie_alter',
    'authcache_test_early_exit',
    'authcache_test_file_transfer',
    'authcache_test_headers_sent',
    'authcache_test_key_generator_key',
    'authcache_test_pagecaching_allow',
    'authcache_test_record',
    'authcache_test_status_message',
    'authcache_test_status_message_exit',
  );
  foreach ($testvars as $var) {
    variable_del($var);
  }
  drupal_static_reset();
}