Documentation

PrevNextTest extends CiviEndToEndTestCase
in package

Class PrevNextTest

Check that the active prev-next service behaves as expected.

Tags
group

e2e

group

ornery

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

Methods

testDeleteByCacheKey()

public testDeleteByCacheKey() : void

testDeleteByEntityId()

public testDeleteByEntityId() : void

testGetPosition_first()

Check the neighbors of the first item.

public testGetPosition_first(mixed $fillFunction) : mixed
Parameters
$fillFunction : mixed
Tags
dataProvider

getFillFunctions

testGetPosition_invalid()

Check the neighbors of the last item.

public testGetPosition_invalid(mixed $fillFunction) : mixed
Parameters
$fillFunction : mixed
Tags
dataProvider

getFillFunctions

testGetPosition_last()

Check the neighbors of the last item.

public testGetPosition_last(mixed $fillFunction) : mixed
Parameters
$fillFunction : mixed
Tags
dataProvider

getFillFunctions

testGetPosition_middle()

Check the neighbors of a middle item.

public testGetPosition_middle(mixed $fillFunction) : mixed
Parameters
$fillFunction : mixed
Tags
dataProvider

getFillFunctions

testMarkSelection_1()

Select and unselect one item.

public testMarkSelection_1(mixed $fillFunction) : mixed
Parameters
$fillFunction : mixed
Tags
dataProvider

getFillFunctions

testMarkSelection_2()

Select and unselect two items.

public testMarkSelection_2(mixed $fillFunction) : mixed
Parameters
$fillFunction : mixed
Tags
dataProvider

getFillFunctions

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)


        
On this page

Search results