You are here

protected function MemcacheTestCase::resetVariables in Memcache API and Integration 7

Reloads internal MemCacheDrupal variables.

1 call to MemcacheTestCase::resetVariables()
MemcacheTestCase::setUp in tests/memcache.test
Re-implements DrupalWebTestCase::setUp() so that we can override $conf.

File

tests/memcache.test, line 239
Test cases for the memcache cache backend.

Class

MemcacheTestCase
@file Test cases for the memcache cache backend.

Code

protected function resetVariables() {
  if ($this->default_bin) {
    $_SESSION['cache_flush'][$this->default_bin] = 0;
    $cache = _cache_get_object($this->default_bin);
    if ($cache instanceof MemCacheDrupal) {
      $cache
        ->reloadVariables();
    }
  }
}