protected function CacheTestCase::setupLifetime in Drupal 7
Setup the lifetime settings for caching.
Parameters
$time: The time in seconds the cache should minimal live.
1 call to CacheTestCase::setupLifetime()
- CacheClearCase::testMinimumCacheLifetime in modules/
simpletest/ tests/ cache.test - Test minimum cache lifetime.
File
- modules/
simpletest/ tests/ cache.test, line 97
Class
Code
protected function setupLifetime($time) {
variable_set('cache_lifetime', $time);
variable_set('cache_flush', 0);
}