ManagedSearchTest
extends TestCase
in package
implements
HeadlessInterface, TransactionalInterface, HookInterface
Tags
Table of Contents
Interfaces
- HeadlessInterface
- Interface HeadlessInterface
- TransactionalInterface
- Interface HeadlessInterface
- HookInterface
Properties
- $_managedEntities : array<string|int, array<string|int, mixed>>
Methods
- hook_civicrm_managed() : void
- setUp() : void
- setUpHeadless() : mixed
- The setupHeadless function runs at the start of each test case, right before the headless environment reboots.
- testDeleteUnusedSearch() : mixed
Properties
$_managedEntities
private
array<string|int, array<string|int, mixed>>
$_managedEntities
= []
Methods
hook_civicrm_managed()
public
hook_civicrm_managed(array<string|int, mixed> &$entities) : void
Parameters
- $entities : array<string|int, mixed>
setUp()
public
setUp() : void
setUpHeadless()
The setupHeadless function runs at the start of each test case, right before the headless environment reboots.
public
setUpHeadless() : mixed
It should perform any necessary steps required for putting the database in a consistent baseline -- such as loading schema and extensions.
The utility \Civi\Test::headless()
provides a number of helper functions
for managing this setup, and it includes optimizations to avoid redundant
setup work.
testDeleteUnusedSearch()
public
testDeleteUnusedSearch() : mixed