public function ApdqcCacheTestCase::setUp in Asynchronous Prefetch Database Query Cache 7
Setup for tests.
Overrides DrupalWebTestCase::setUp
2 calls to ApdqcCacheTestCase::setUp()
- ApdqcCacheClearCase::setUp in ./
apdqc.test - Install the apdqc module and setup the cache.
- ApdqcCacheIsEmptyCase::setUp in ./
apdqc.test - Install the apdqc module and setup the cache.
2 methods override ApdqcCacheTestCase::setUp()
- ApdqcCacheClearCase::setUp in ./
apdqc.test - Install the apdqc module and setup the cache.
- ApdqcCacheIsEmptyCase::setUp in ./
apdqc.test - Install the apdqc module and setup the cache.
File
- ./
apdqc.test, line 19 - Tests for the Asynchronous Prefetch Database Query Cache module.
Class
- ApdqcCacheTestCase
- Add new functionality to DrupalWebTestCase.
Code
public function setUp() {
parent::setUp(func_get_args());
$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');
}