From a152ca9c79b10d3549e5c6ffc52f51eb8407d822 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 1ba6b9dcbe..f5c9d4fe34 100644 --- a/tests/phpunit/CRM/Contribute/BAO/ContributionRecurTest.php +++ b/tests/phpunit/CRM/Contribute/BAO/ContributionRecurTest.php @@ -331,7 +331,7 @@ class CRM_Contribute_BAO_ContributionRecurTest extends CiviUnitTestCase { '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', -- 2.25.1