Skip to content

Commit

Permalink
Merge pull request #19305 from totten/master-renewtest-c
Browse files Browse the repository at this point in the history
(POC#C) MembershipRenewalTest - Address assertions that started failing circa Jan 1, 2021
  • Loading branch information
eileenmcnaughton authored Jan 2, 2021
2 parents e17b910 + 0e26954 commit f4704cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/phpunit/CRM/Member/Form/MembershipRenewalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -126,6 +128,7 @@ public function tearDown() {
foreach ($this->ids['contact'] as $contactID) {
$this->callAPISuccess('contact', 'delete', ['id' => $contactID, 'skip_undelete' => TRUE]);
}
timecop_return();
}

/**
Expand Down

0 comments on commit f4704cb

Please sign in to comment.