You are here

function CacheTestCase::assertCacheRemoved in SimpleTest 7

Assert or a cache entry has been removed.

Parameters

$message: Message to display.

$cid: The cache id.

$bin: The bin the cache item was stored in.

2 calls to CacheTestCase::assertCacheRemoved()
CacheClearCase::testClearCid in tests/cache.test
Test clearing using a cid.
CacheIsEmptyCase::testIsEmpty in tests/cache.test
Test clearing using a cid.

File

tests/cache.test, line 66

Class

CacheTestCase

Code

function assertCacheRemoved($message, $cid = NULL, $bin = NULL) {
  if ($bin == NULL) {
    $bin = $this->default_bin;
  }
  if ($cid == NULL) {
    $cid = $this->default_cid;
  }
  $cache = cache_get($cid, $bin);
  $this
    ->assertFalse($cache, $message);
}