Documentation

CRMTraits_Event_ScenarioTrait

Trait to do set up for event scenarios.

This allows multiple test classes to act on various scenarios. e.g a user might complete a pending registration using the back office form, an api call or the horrible front end form overload method.

It might make sense to move this to Civi\Test for extensions to use but it might need to 'settle' a bit first as there is a balance to be found between accepting parameters & winding up with crazy complex functions.

Table of Contents

Properties

$sentMail  : array<string|int, mixed>
Mail sent during form submission.

Methods

createScenarioMultipleParticipantPendingFreeEvent()  : void
Create a participant registration with 2 registered_by participants.
createScenarioMultipleParticipantPendingWithTax()  : void
Create a participant registration with 2 registered_by participants.

Properties

$sentMail

Mail sent during form submission.

protected array<string|int, mixed> $sentMail = []

Methods

createScenarioMultipleParticipantPendingFreeEvent()

Create a participant registration with 2 registered_by participants.

protected createScenarioMultipleParticipantPendingFreeEvent() : void

This follows the front end form multiple participant flow with tax enabled.

Tags
throws
UnauthorizedException
throws
CRM_Core_Exception

createScenarioMultipleParticipantPendingWithTax()

Create a participant registration with 2 registered_by participants.

protected createScenarioMultipleParticipantPendingWithTax() : void

This follows the front end form multiple participant flow with tax enabled.

Tags
throws
UnauthorizedException
throws
CRM_Core_Exception

        
On this page

Search results