MembershipRenewalTest - Use mocked time. Fix assertions that fail in 2021
authorTim Otten <totten@civicrm.org>
Sat, 2 Jan 2021 04:57:30 +0000 (20:57 -0800)
committerTim Otten <totten@civicrm.org>
Fri, 8 Jan 2021 05:24:46 +0000 (21:24 -0800)
commit6acb65867ff3814665c0c4ccde1c1ce83f3ba500
tree9cd76fad08afd03aba317e45105dff2741f6a3e8
parentfcd647c040863b399bd2b8c90e7aeb31bb1313b8
MembershipRenewalTest - Use mocked time. Fix assertions that fail in 2021

Circa Jan 1, 2021, this tested started failing reliable -- most likely
because the example values only make sense in a certain time-frame (ie after
Apr 2020 but before Jan 20201).

This patch makes the time-frame explicit by mocking the 'current time'.
tests/phpunit/CRM/Member/Form/MembershipRenewalTest.php