From: Tim Otten Date: Sat, 2 Jan 2021 06:13:51 +0000 (-0800) Subject: (POC) MembershipRenewalTest - Address assertions that started failing circa Jan 1... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0e26954421a745176059f641b1a6840f9e87ab9e;p=civicrm-core.git (POC) MembershipRenewalTest - Address assertions that started failing circa Jan 1, 2021 --- diff --git a/tests/phpunit/CRM/Member/Form/MembershipRenewalTest.php b/tests/phpunit/CRM/Member/Form/MembershipRenewalTest.php index 44206a281d..c47906e4ae 100644 --- a/tests/phpunit/CRM/Member/Form/MembershipRenewalTest.php +++ b/tests/phpunit/CRM/Member/Form/MembershipRenewalTest.php @@ -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(); } /**