(POC) MembershipRenewalTest - Address assertions that started failing circa Jan 1...
authorTim Otten <totten@civicrm.org>
Sat, 2 Jan 2021 06:13:51 +0000 (22:13 -0800)
committerSeamus Lee <seamuslee001@gmail.com>
Sun, 3 Jan 2021 20:21:45 +0000 (07:21 +1100)
tests/phpunit/CRM/Member/Form/MembershipRenewalTest.php

index b70bfc665f9d2652cf5b214cc23dd3b3766fbc57..1465b98b1dfee8204b869411ca6f81df1adfbfc0 100644 (file)
@@ -77,6 +77,8 @@ class CRM_Member_Form_MembershipRenewalTest extends CiviUnitTestCase {
   public function setUp() {
     parent::setUp();
 
+    timecop_travel(mktime(1, 0, 0, 8, 1, 2020));
+
     $this->_individualId = $this->individualCreate();
     $this->_paymentProcessorID = $this->processorCreate();
     $this->financialTypeID = CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'financial_type_id', 'Member Dues');
@@ -125,6 +127,7 @@ class CRM_Member_Form_MembershipRenewalTest extends CiviUnitTestCase {
     foreach ($this->ids['contact'] as $contactID) {
       $this->callAPISuccess('contact', 'delete', ['id' => $contactID, 'skip_undelete' => TRUE]);
     }
+    timecop_return();
   }
 
   /**