Skip to content

Commit

Permalink
Fix for failing test
Browse files Browse the repository at this point in the history
BY ensuring join_date is in the past we get away from situations where there is no valid status
  • Loading branch information
eileenmcnaughton committed Aug 2, 2020
1 parent eae974d commit dadbf1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/phpunit/CRM/Contribute/BAO/ContributionRecurTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public function testAutoRenewalWhenOneMemberIsDeceased() {
'contact_id' => $contactId,
'membership_type_id' => $priceField['membership_type_id'],
'source' => 'Payment',
'join_date' => date('Y-m') . '-28',
'join_date' => date('Y-m', strtotime('1 month ago')) . '-28',
'start_date' => date('Y-m') . '-28',
'contribution_recur_id' => $contributionRecurId,
'status_id' => 'Pending',
Expand Down

0 comments on commit dadbf1e

Please sign in to comment.