Fix for failing test
authoreileen <emcnaughton@wikimedia.org>
Sun, 2 Aug 2020 04:41:16 +0000 (16:41 +1200)
committereileen <emcnaughton@wikimedia.org>
Sun, 2 Aug 2020 04:41:16 +0000 (16:41 +1200)
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

index 1ba6b9dcbe8b94f53a1eae74c4e8329bc0c1b8ec..f5c9d4fe34b5c0c0916763ff2589b981957c7ada 100644 (file)
@@ -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',