Documentation

Test

Table of Contents

Namespaces

CiviEnvBuilder
ExampleData
FormWrappers
Legacy

Interfaces

EndToEndInterface
Interface EndToEndInterface
ExampleDataInterface
HeadlessInterface
Interface HeadlessInterface
TransactionalInterface
Interface HeadlessInterface

Classes

CiviEnvBuilder
Class CiviEnvBuilder
CiviTestListener
Class CiviTestListener
CiviTestListenerPHPUnit7
Class CiviTestListener
Data
Class Data
EntityExample
Helper class for defining entity examples.
EventCheck
An EventCheck is a fragment of a unit-test -- it is mixed into various test-scenarios and applies extra assertions.
EventChecker
EventCheckException
ExampleDataLoader
FormWrapper
Invasive
The "Invasive" helper makes it a bit easier to write unit-tests which touch upon private or protected members.
LocalHttpClient
(Experimental) Send HTTP-style requests directly to CRM_Core_Invoke (PSR-18 ClientInterface).
MinkBase
Class MinkBase. Helper functions for E2E testing.
RemoteTestFunction
RemoteTestFunctions may be used by tests to define (inline) code that will run on a remote server.
Schema
Class Schema
TAP7
Implementation of TAP for PHPUnit 7.x-8.x.
TAP9
Implementation of TAP for PHPUnit 9.x.
TAPLegacy
ExampleHookTest
This is an example of a barebones test which implements `HookInterface`. Methods are automatically scanned to find event-listeners based on a naming convention:
ExampleSubscriberTest
This is an example of a barebones test which implements `EventSubscriberInterface`. The method `getSubscribedEvents()` is used to get a list of listeners.
ExampleTransactionalTest
This is an example of a barebones test which uses a transaction (based on CiviTestListener).
InvasiveExample
Class InvasiveExample
InvasiveTest
Base class for CiviCRM unit tests

Traits

ACLPermissionTrait
Trait Civi\Test\ACLPermissionTrait.
Api3TestTrait
Class Api3TestTrait
Api4TestTrait
Class Api4TestTrait
ContactTestTrait
Class ContactTestTrait
ContributionPageTestTrait
Helper for event tests.
DbTestTrait
Class DbTestTrait
EntityTrait
Helper for tracking entities created in tests.
EventTestTrait
Helper for event tests.
FormTrait
Trait for writing tests interacting with QuickForm.
GenericAssertionsTrait
Class ExtraAssertionsTrait
GuzzleTestTrait
Class GuzzleTestTrait
HttpTestTrait
Class HttpTestTrait
LocaleTestTrait
Define helpers for testing multiple locales.
MailingTestTrait
Class MailingTestTrait
PageTrait
Trait for writing tests interacting with QuickForm Pages.
QueueTestTrait
Helper functions for testing queues.
WorkflowMessageTestTrait

        
On this page

Search results