public function ApdqcCacheTestCase::assertCacheRemoved in Asynchronous Prefetch Database Query Cache 7
Assert that a cache entry has been removed.
Parameters
string $message: Message to display.
string $cid: The cache id.
string $bin: The bin the cache item was stored in.
1 call to ApdqcCacheTestCase::assertCacheRemoved()
- ApdqcCacheIsEmptyCase::testIsEmpty in ./
apdqc.test  - Test clearing using a cid.
 
File
- ./
apdqc.test, line 88  - Tests for the Asynchronous Prefetch Database Query Cache module.
 
Class
- ApdqcCacheTestCase
 - Add new functionality to DrupalWebTestCase.
 
Code
public function assertCacheRemoved($message, $cid = NULL, $bin = NULL) {
  if ($bin == NULL) {
    $bin = $this->defaultBin;
  }
  if ($cid == NULL) {
    $cid = $this->defaultCid;
  }
  $cache = new APDQCache($bin);
  $cached = $cache
    ->get($cid);
  $this
    ->assertFalse($cached, $message);
}