Documentation

CRMTraits_Financial_OrderTrait

Trait OrderTrait

Trait for setting up orders for tests.

Table of Contents

Methods

createRepeatMembershipOrder()  : void
Create a pending membership from a recurring order.
createContributionAndMembershipOrder()  : void
Create an order with a contribution AND a membership line item.
createEventOrder()  : mixed
Create an order for an event.
createExtraneousContribution()  : mixed
Create an extraneous contribution to throw off any 'number one bugs'.
createMultipleMembershipOrder()  : mixed
Create an order with more than one membership.
getMembershipLineItem()  : array<string|int, array<string|int, mixed>>

Methods

createRepeatMembershipOrder()

Create a pending membership from a recurring order.

public createRepeatMembershipOrder() : void
Tags
throws
CRM_Core_Exception

createContributionAndMembershipOrder()

Create an order with a contribution AND a membership line item.

protected createContributionAndMembershipOrder() : void
Tags
throws
CRM_Core_Exception

createEventOrder()

Create an order for an event.

protected createEventOrder([array<string|int, mixed> $orderParams = [] ]) : mixed
Parameters
$orderParams : array<string|int, mixed> = []
Tags
throws
CRM_Core_Exception

createExtraneousContribution()

Create an extraneous contribution to throw off any 'number one bugs'.

protected createExtraneousContribution() : mixed

Ie this means our real data starts from 2 & we won't hit 'pretend passes' just because the number 1 is used for multiple entities.

createMultipleMembershipOrder()

Create an order with more than one membership.

protected createMultipleMembershipOrder() : mixed
Tags
throws
CRM_Core_Exception

getMembershipLineItem()

protected getMembershipLineItem() : array<string|int, array<string|int, mixed>>
Tags
throws
CRM_Core_Exception
Return values
array<string|int, array<string|int, mixed>>

        
On this page

Search results