protected function DrupalWebTestCase::getSetupCacheKey in Drupal 7
Returns the cache key used for the setup caching.
Parameters
string $cache_key_prefix: (optional) Additional prefix for the cache key.
Return value
string The cache key to use, by default only based on the profile used by the test.
3 calls to DrupalWebTestCase::getSetupCacheKey()
- DrupalWebTestCase::loadSetupCache in modules/
simpletest/ drupal_web_test_case.php - Copies the cached tables and files for a cached installation setup.
- DrupalWebTestCase::setUp in modules/
simpletest/ drupal_web_test_case.php - Sets up a Drupal site for running functional and integration tests.
- DrupalWebTestCase::storeSetupCache in modules/
simpletest/ drupal_web_test_case.php - Store the installation setup to a cache.
File
- modules/
simpletest/ drupal_web_test_case.php, line 1498
Class
- DrupalWebTestCase
- Test case for typical Drupal tests.
Code
protected function getSetupCacheKey($cache_key_prefix = '') {
// The cache key needs to start with a numeric character, so that the cached
// installation gets cleaned up properly.
$cache_key_prefix = hash('crc32b', $cache_key_prefix . $this->profile);
return '1c' . $cache_key_prefix;
}