public function ApdqcCacheClearCase::setUp in Asynchronous Prefetch Database Query Cache 7
Install the apdqc module and setup the cache.
Overrides ApdqcCacheTestCase::setUp
File
- ./
apdqc.test, line 148 - Tests for the Asynchronous Prefetch Database Query Cache module.
Class
- ApdqcCacheClearCase
- Test cache clearing methods for APDQC.
Code
public function setUp() {
parent::setUp('apdqc');
$this->defaultBin = 'cache_page';
$this->defaultValue = $this
->randomName(10);
$cache_backends = variable_get('cache_backends', array());
$file_path = drupal_get_path('module', 'apdqc');
$cache_backends[] = "{$file_path}/apdqc.cache.inc";
variable_set('cache_backends', $cache_backends);
variable_set('cache_default_class', 'APDQCache');
}