(NFC) Membership Tests - Update assertions to match behavior circa leap-day
authorTim Otten <totten@civicrm.org>
Tue, 1 Mar 2022 06:00:03 +0000 (22:00 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 1 Mar 2022 06:00:03 +0000 (22:00 -0800)
commit0d7e780ef0248d61e087a9fe1190af7b65991fd1
treeb716a59a438a7bdbf72a49cb04dc0a26387e0fc2
parent245c061fc0a051bbc8198e16c9bb6f046256919b
(NFC) Membership Tests - Update assertions to match behavior circa leap-day

If you run the tests on Mar 2, 2022, then some of the generated memberships
land on the leap-day in 2024.  The actual behavior is have the end-date on the
last day of the month (29 Feb 2024), but the test incorrectly asserts that
it comes before (28 Feb 2024).
tests/phpunit/CiviTest/CiviUnitTestCase.php
tests/phpunit/api/v3/ContributionPageTest.php