dev/financial#152 remove determination of source
authoreileen <emcnaughton@wikimedia.org>
Sun, 22 Nov 2020 22:12:17 +0000 (11:12 +1300)
committereileen <emcnaughton@wikimedia.org>
Mon, 23 Nov 2020 00:23:04 +0000 (13:23 +1300)
commit2ca321fac4e9bd1e276ba7db491c60588e9b17f8
tree440e34d0b228e243d9f9a8d3337e6111f1654a79
parentf72d958ce0e78fb66399005dc0f9a4ab41907d02
dev/financial#152 remove determination of source

This function call determines the source, requiring quite a bit of complexity - however I believe it is unnecessary because either
1 ) we are completing an existing contribution - in which case the source will already exist or
2 ) we are repeating a contribution - in which case the source will be derived from the template contribution
(with recurring appended).

Removing this brings us close to the point where contribution is unnessary as an input parameter on the function
CRM/Contribute/BAO/Contribution.php
tests/phpunit/CRM/Core/Payment/AuthorizeNetIPNTest.php
tests/phpunit/CRMTraits/Financial/OrderTrait.php
tests/phpunit/CiviTest/CiviUnitTestCase.php
tests/phpunit/api/v3/ContributionTest.php