1 cache.test | CacheClearCase::testClearCid() |
Test clearing using a cid.
File
- core/
modules/ simpletest/ tests/ cache.test, line 207
Class
- CacheClearCase
- Test cache clearing methods.
Code
function testClearCid() {
$cache = cache($this->default_bin);
$cache->set('test_cid_clear', $this->default_value);
$this->assertCacheExists(t('Cache was set for clearing cid.'), $this->default_value, 'test_cid_clear');
$cache->delete('test_cid_clear');
$this->assertCacheRemoved(t('Cache was removed after clearing cid.'), 'test_cid_clear');
}