(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)
committerTim Otten <totten@civicrm.org>
Sat, 2 Jan 2021 06:13:51 +0000 (22:13 -0800)
tests/phpunit/CRM/Member/Form/MembershipRenewalTest.php

index 44206a281db27ce9c0c5e18147a90c4167829eda..c47906e4ae1455df12dde3da6039755dd13d9336 100644 (file)
@@ -78,6 +78,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');
@@ -126,6 +128,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();
   }
 
   /**