public function BackendGeneralTestCase::assertRemoved in Supercache 8
Same name and namespace in other branches
- 2.0.x src/Tests/Generic/Cache/BackendGeneralTestCase.php \Drupal\supercache\Tests\Generic\Cache\BackendGeneralTestCase::assertRemoved()
Assert or a cache entry has been removed.
Parameters
string $message: Message to display.
string $cid: The cache id.
4 calls to BackendGeneralTestCase::assertRemoved()
- BackendClearTests::testClearAll in src/
Tests/ Generic/ Cache/ BackendClearTests.php - Test clears and that there is no leakage between binaries.
- BackendClearTests::testClearCid in src/
Tests/ Generic/ Cache/ BackendClearTests.php - Test clearing using a cid.
- BackendExpireTests::testExpirations in src/
Tests/ Generic/ Cache/ BackendExpireTests.php - Test the saving and restoring of a string.
- RawBackendGeneralTests::testCounter in src/
Tests/ Generic/ Cache/ RawBackendGeneralTests.php - Test counter().
File
- src/
Tests/ Generic/ Cache/ BackendGeneralTestCase.php, line 78
Class
- BackendGeneralTestCase
- Testea funciones basicas.
Namespace
Drupal\supercache\Tests\Generic\CacheCode
public function assertRemoved($message, $cid = NULL, $backend = NULL) {
if (empty($backend)) {
$backend = $this->backend;
}
if ($cid == NULL) {
$cid = $this->defaultcid;
}
$cache = $backend
->get($cid);
$this
->assertFalse($cache, $message);
}