From 0e26954421a745176059f641b1a6840f9e87ab9e Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 1 Jan 2021 22:13:51 -0800 Subject: [PATCH] (POC) MembershipRenewalTest - Address assertions that started failing circa Jan 1, 2021 --- tests/phpunit/CRM/Member/Form/MembershipRenewalTest.php | 3 +++ 1 file changed, 3 insertions(+) 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(); } /** -- 2.25.1