Use order api when creating a recurring membership from the Membership backoffice...
authoreileen <emcnaughton@wikimedia.org>
Fri, 16 Apr 2021 00:16:16 +0000 (12:16 +1200)
committereileen <emcnaughton@wikimedia.org>
Wed, 5 May 2021 05:37:53 +0000 (17:37 +1200)
commit45a6ec43d0de8eacbbe5379a523decd1e94601cd
treef8cb49f5fd70b7f020038e5ceaff0495edd0fae9
parentca64a8f8bb36d3c5d93e6805e1e9b384a7297d76
Use order api when creating a recurring membership from the Membership backoffice form

This removes the need for some 'magic' code from the membership BAO that was really only
there to support the fact that this code was doing some particularly convoluted
manoevering in order to share code with the front end form (since unshared).

Not this adds a feature Matt requested - the created membership id is returned. This
is only done for memberships at the moment but could be other entities too as
test cover is added (the membership tests fail without the change in this
PR so it has cover in the context it is added
CRM/Member/BAO/Membership.php
CRM/Member/Form.php
CRM/Member/Form/Membership.php
api/v3/Order.php
tests/phpunit/CRM/Member/Form/MembershipTest.php