You are here

public function ApdqcCacheIsEmptyCase::setUp in Asynchronous Prefetch Database Query Cache 7

Install the apdqc module and setup the cache.

Overrides ApdqcCacheTestCase::setUp

File

./apdqc.test, line 297
Tests for the Asynchronous Prefetch Database Query Cache module.

Class

ApdqcCacheIsEmptyCase
Test isEmpty() function.

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);
}