PrevNextTest
extends CiviEndToEndTestCase
in package
Class PrevNextTest
Check that the active prev-next service behaves as expected.
Tags
Table of Contents
Properties
- $cacheKey : string
- $cacheKeyB : string
- $prevNext : CRM_Core_PrevNextCache_Interface
Methods
- getFillFunctions() : mixed
- setUpBeforeClass() : void
- testDeleteAll() : void
- testDeleteByCacheKey() : void
- testDeleteByEntityId() : void
- testFetch() : void
- testFillArray() : void
- testFillSql() : void
- testGetPosition_first() : mixed
- Check the neighbors of the first item.
- testGetPosition_invalid() : mixed
- Check the neighbors of the last item.
- testGetPosition_last() : mixed
- Check the neighbors of the last item.
- testGetPosition_middle() : mixed
- Check the neighbors of a middle item.
- testMarkSelection_1() : mixed
- Select and unselect one item.
- testMarkSelection_2() : mixed
- Select and unselect two items.
- assertSelections() : array<string|int, mixed>
- Assert that the current cacheKey has a list of selected contact IDs.
- setUp() : void
- tearDown() : void
Properties
$cacheKey
protected
string
$cacheKey
$cacheKeyB
protected
string
$cacheKeyB
$prevNext
protected
CRM_Core_PrevNextCache_Interface
$prevNext
Methods
getFillFunctions()
public
getFillFunctions() : mixed
setUpBeforeClass()
public
static setUpBeforeClass() : void
testDeleteAll()
public
testDeleteAll() : void
testDeleteByCacheKey()
public
testDeleteByCacheKey() : void
testDeleteByEntityId()
public
testDeleteByEntityId() : void
testFetch()
public
testFetch() : void
testFillArray()
public
testFillArray() : void
testFillSql()
public
testFillSql() : void
testGetPosition_first()
Check the neighbors of the first item.
public
testGetPosition_first(mixed $fillFunction) : mixed
Parameters
- $fillFunction : mixed
Tags
testGetPosition_invalid()
Check the neighbors of the last item.
public
testGetPosition_invalid(mixed $fillFunction) : mixed
Parameters
- $fillFunction : mixed
Tags
testGetPosition_last()
Check the neighbors of the last item.
public
testGetPosition_last(mixed $fillFunction) : mixed
Parameters
- $fillFunction : mixed
Tags
testGetPosition_middle()
Check the neighbors of a middle item.
public
testGetPosition_middle(mixed $fillFunction) : mixed
Parameters
- $fillFunction : mixed
Tags
testMarkSelection_1()
Select and unselect one item.
public
testMarkSelection_1(mixed $fillFunction) : mixed
Parameters
- $fillFunction : mixed
Tags
testMarkSelection_2()
Select and unselect two items.
public
testMarkSelection_2(mixed $fillFunction) : mixed
Parameters
- $fillFunction : mixed
Tags
assertSelections()
Assert that the current cacheKey has a list of selected contact IDs.
protected
assertSelections(array<string|int, mixed> $ids[, string $action = 'get' ][, string|null $cacheKey = NULL ]) : array<string|int, mixed>
Parameters
- $ids : array<string|int, mixed>
-
Contact IDs that should be selected.
- $action : string = 'get'
- $cacheKey : string|null = NULL
Return values
array<string|int, mixed> —Contact IDs that were returned by getSelection($cacheKey, $action)
setUp()
protected
setUp() : void
tearDown()
protected
tearDown() : void