[REF] Extract code to get generic membership parameters
authoreileen <emcnaughton@wikimedia.org>
Thu, 11 Mar 2021 20:50:22 +0000 (09:50 +1300)
committereileen <emcnaughton@wikimedia.org>
Sun, 14 Mar 2021 01:43:20 +0000 (14:43 +1300)
commitd04c988569797fff53afece1c1b4932a7851274b
tree3ed942ca72eec79c88bbfbc05109f0a47e3bd22b
parentda28128b812d4ae53c52abd8073656c61bbc4cc7
[REF] Extract code to get generic membership parameters

The form has 2 types of membership parameters
1) submitted parameters
2) calculated parameters that are per membership type

This extracts the portion that are submitted to be fetched
from a single place that will return the same result whereever
it is called from (allows us to move
code around without breaking the fragile parameter chain)
CRM/Member/Form/Membership.php
tests/phpunit/CRM/Member/Form/MembershipTest.php