function CacheTestCase::setupLifetime

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

CacheTestCase

Code

protected function setupLifetime($time) {
    variable_set('cache_lifetime', $time);
    variable_set('cache_flush', 0);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.