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
createContributionAndMembershipOrder()
Create an order with a contribution AND a membership line item.
protected
createContributionAndMembershipOrder() : void
Tags
createEventOrder()
Create an order for an event.
protected
createEventOrder([array<string|int, mixed> $orderParams = [] ]) : mixed
Parameters
- $orderParams : array<string|int, mixed> = []
Tags
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
getMembershipLineItem()
protected
getMembershipLineItem() : array<string|int, array<string|int, mixed>>