E2E_Cache_TwoInstancesTest
extends CiviEndToEndTestCase
in package
If you make two instances of a cache driver, do they coexist as you would expect?
Tags
Table of Contents
Properties
Methods
- getSingleGenerators() : mixed
- Get a list of cache-creation specs.
- getTwoGenerators() : mixed
- Get a list of distinct cache-creation specs.
- setUpBeforeClass() : void
- testDiff_clearA() : mixed
- Add items to the two caches. Then clear the first.
- testDiff_clearB() : mixed
- Add items to the two caches. Then clear the second.
- testDiff_reload() : mixed
- Add items to the two caches. Then reload both caches and read from each.
- testSingle_reload() : mixed
- Add item to one cache instance then read with another.
- createTwoCaches() : array<string|int, mixed>
- setUp() : void
- tearDown() : void
Properties
$a
protected
CacheInterface
$a
$b
protected
CacheInterface
$b
Methods
getSingleGenerators()
Get a list of cache-creation specs.
public
getSingleGenerators() : mixed
getTwoGenerators()
Get a list of distinct cache-creation specs.
public
getTwoGenerators() : mixed
setUpBeforeClass()
public
static setUpBeforeClass() : void
testDiff_clearA()
Add items to the two caches. Then clear the first.
public
testDiff_clearA(array<string|int, mixed> $cacheA, array<string|int, mixed> $cacheB) : mixed
Parameters
- $cacheA : array<string|int, mixed>
-
Cache definition. See CRM_Utils_Cache::create().
- $cacheB : array<string|int, mixed>
-
Cache definition. See CRM_Utils_Cache::create().
Tags
testDiff_clearB()
Add items to the two caches. Then clear the second.
public
testDiff_clearB(array<string|int, mixed> $cacheA, array<string|int, mixed> $cacheB) : mixed
Parameters
- $cacheA : array<string|int, mixed>
-
Cache definition. See CRM_Utils_Cache::create().
- $cacheB : array<string|int, mixed>
-
Cache definition. See CRM_Utils_Cache::create().
Tags
testDiff_reload()
Add items to the two caches. Then reload both caches and read from each.
public
testDiff_reload(array<string|int, mixed> $cacheA, array<string|int, mixed> $cacheB) : mixed
Parameters
- $cacheA : array<string|int, mixed>
-
Cache definition. See CRM_Utils_Cache::create().
- $cacheB : array<string|int, mixed>
-
Cache definition. See CRM_Utils_Cache::create().
Tags
testSingle_reload()
Add item to one cache instance then read with another.
public
testSingle_reload(array<string|int, mixed> $cacheDef) : mixed
Parameters
- $cacheDef : array<string|int, mixed>
-
Cache definition. See CRM_Utils_Cache::create().
Tags
createTwoCaches()
protected
createTwoCaches(mixed $cacheA, mixed $cacheB) : array<string|int, mixed>
Parameters
- $cacheA : mixed
- $cacheB : mixed
Return values
array<string|int, mixed>setUp()
protected
setUp() : void
tearDown()
protected
tearDown() : void