You are here

protected function CacheTestCase::setupLifetime in SimpleTest 7

Setup the lifetime settings for caching.

Parameters

$time: The time in seconds the cache should minimal live.

File

tests/cache.test, line 97

Class

CacheTestCase

Code

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