dev/financial#149 Add permission = false to apiv4 call to address regression
authoreileen <emcnaughton@wikimedia.org>
Sun, 13 Sep 2020 23:14:54 +0000 (11:14 +1200)
committereileen <emcnaughton@wikimedia.org>
Sun, 13 Sep 2020 23:14:54 +0000 (11:14 +1200)
commitbf30261088cf844f63c31e5e6530ff05f2f97a36
treecc2e2afb14298be2e98494ebdbdc26595eec0d04
parenta31cdda9e9acda454f02790e3e8d1aca1f02ea2c
dev/financial#149 Add permission = false to apiv4 call to address regression

This retrieves payment processors using FALSE for get permissions. I was able to replicate the bug in the test.

I also updated one line that I passed through when stepping through the test that related to the addActivity.
It just passes in activityType rather than leaving addActivity to figure that out
CRM/Contribute/BAO/Contribution.php
CRM/Contribute/Form/Contribution/Confirm.php
tests/phpunit/CRM/Contribute/Form/Contribution/ConfirmTest.php
tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php