You are here

protected function BackendGeneralTestCase::assertExists in Supercache 8

Same name and namespace in other branches
  1. 2.0.x src/Tests/Generic/Cache/BackendGeneralTestCase.php \Drupal\supercache\Tests\Generic\Cache\BackendGeneralTestCase::assertExists()

Assert or a entry exists.

Parameters

string $message: Message to display.

string $var: The variable the WinCache should contain.

string $cid: The cache id.

3 calls to BackendGeneralTestCase::assertExists()
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.

File

src/Tests/Generic/Cache/BackendGeneralTestCase.php, line 128

Class

BackendGeneralTestCase
Testea funciones basicas.

Namespace

Drupal\supercache\Tests\Generic\Cache

Code

protected function assertExists($message, $var = NULL, $cid = NULL, $backend = NULL) {
  $this
    ->assertTrue($this
    ->checkExists($cid, $var, $backend), $message);
}