Documentation

SearchSegmentTest extends TestCase
in package
implements HeadlessInterface

Tags
group

headless

Table of Contents

Interfaces

HeadlessInterface
Interface HeadlessInterface

Methods

setUpHeadless()  : mixed
The setupHeadless function runs at the start of each test case, right before the headless environment reboots.
tearDown()  : void
testRangeSearchSegment()  : mixed
Test running a searchDisplay with a numeric range segment.
testSegmentCalcField()  : mixed
Uses a calc field as the basis for a segment, and fetches it via related contact join, just to test that extra bit of complexity
testSegmentCustomField()  : mixed
Tests a segment based on custom data using a bridge join

Methods

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.

testRangeSearchSegment()

Test running a searchDisplay with a numeric range segment.

public testRangeSearchSegment() : mixed

testSegmentCalcField()

Uses a calc field as the basis for a segment, and fetches it via related contact join, just to test that extra bit of complexity

public testSegmentCalcField() : mixed

testSegmentCustomField()

Tests a segment based on custom data using a bridge join

public testSegmentCustomField() : mixed

        
On this page

Search results