protected function CacheTestCase::setupLifetime

7.x cache.test protected CacheTestCase::setupLifetime($time)

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 drupal-7.x/modules/simpletest/tests/cache.test
Test minimum cache lifetime.

File

drupal-7.x/modules/simpletest/tests/cache.test, line 97

Class

CacheTestCase

Code

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