[REF] Code cleanup on membership renewal & test
authoreileen <emcnaughton@wikimedia.org>
Sat, 5 Sep 2020 01:30:43 +0000 (13:30 +1200)
committereileen <emcnaughton@wikimedia.org>
Sat, 5 Sep 2020 04:13:52 +0000 (16:13 +1200)
commit0c1281235ead0ba3767780c13d159199b26b2d3d
treec7f31d7fceaaec144f35ff4e019a05ee0813f6d2
parent30bd3f91efc7f6990f956efcef35e10e38e8380c
[REF] Code cleanup on membership renewal & test

This wound up being mainly a clean up of the test class & the addition of a test on changing
membership type.

However, there is a minor code consolidation which makes 3 actual changes
1) if we are doing a test renewal we shouldn't make the membership test
2) even when renewing a Pending membership we should save any submitted custom data
3) modified id is also set for pending (although future test work might indicate this can go
CRM/Member/Form/MembershipRenewal.php
tests/phpunit/CRM/Member/Form/MembershipRenewalTest.php