interface HeadlessInterface

Interface HeadlessInterface

Methods

setUpHeadless()

The setupHeadless function runs at the start of each test case, right before the headless environment reboots.

Details

at line 38
setUpHeadless()

The setupHeadless function runs at the start of each test case, right before the headless environment reboots.

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.

See also

\Civi\Test