Skip to content

Commit

Permalink
Enable participantstatustype
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwire committed Oct 28, 2020
1 parent b42887e commit 44b9a78
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/phpunit/api/v3/OrderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,16 @@ public function testAddOrderForParticipant() {
'id' => $order['id'],
]);

// Enable the "Pending from approval" status which is not enabled by default
$pendingFromApprovalParticipantStatus = civicrm_api3('ParticipantStatusType', 'getsingle', [
'name' => "Pending from approval",
]);
civicrm_api3('ParticipantStatusType', 'create', [
'id' => $pendingFromApprovalParticipantStatus['id'],
'name' => "Pending from approval",
'is_active' => 1,
]);

$p['line_items'][] = [
'line_item' => $lineItems,
'params' => [
Expand Down

0 comments on commit 44b9a78

Please sign in to comment.