From dadbf1e312e198620109b0319c5d86b118c32432 Mon Sep 17 00:00:00 2001 From: eileen Date: Sun, 2 Aug 2020 16:41:16 +1200 Subject: [PATCH] Fix for failing test BY ensuring join_date is in the past we get away from situations where there is no valid status --- tests/phpunit/CRM/Contribute/BAO/ContributionRecurTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/CRM/Contribute/BAO/ContributionRecurTest.php b/tests/phpunit/CRM/Contribute/BAO/ContributionRecurTest.php index 1ba6b9dcbe8b..f5c9d4fe34b5 100644 --- a/tests/phpunit/CRM/Contribute/BAO/ContributionRecurTest.php +++ b/tests/phpunit/CRM/Contribute/BAO/ContributionRecurTest.php @@ -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',