You are here

public function CleanerTestBase::cleanerGetDummyCache in Cleaner 7

Get dummy cache.

Parameters

string $cid: Cache ID(CID).

Return value

string Cache value after the cache clearing.

1 call to CleanerTestBase::cleanerGetDummyCache()
CleanerTestCacheClearing::testCacheClearing in tests/cleaner_cache.test
Test clearing caches.

File

tests/cleaner_base.test, line 104
File with a base class for the Cleaner test cases.

Class

CleanerTestBase
Class CleanerTestBase.

Code

public function cleanerGetDummyCache($cid) {
  $this
    ->assertTrue(is_string($cid));

  // Get previously saved variable from the cache.
  return cache_get($cid);
}