[NFC] [Test] Intial testing on event payment forms.
authoreileen <emcnaughton@wikimedia.org>
Mon, 10 Aug 2020 04:12:02 +0000 (16:12 +1200)
committereileen <emcnaughton@wikimedia.org>
Mon, 10 Aug 2020 05:13:54 +0000 (17:13 +1200)
commit6986e4f1b74c75796a95e3e6e3b218f68649c44b
treecf6be9a4d166464469db20fa6b9d2b3408e0cedf
parent0c29b2e3fa2a16171ae975820bfb33ef85aa1778
[NFC] [Test] Intial testing on event payment forms.

I'm trying to work on improving our testing of payment forms. I started with 3 event forms but there were
enough challenges that for this commit I'm just adding tests on one form. As noted in the code comments
it makes sense for this test to be in the extension but I want to work through the challenges on the
other forms before finalising any helper functions to the point where they are available to extensions.

This is actually a bit of a break through as it's the first time we have testing on a form flow - ie
submitting the first form and then the second. It was quite painful
tests/phpunit/CRM/Core/Payment/AuthorizeNetTrait.php [new file with mode: 0644]
tests/phpunit/CRM/Financial/Form/PaymentFormsTest.php [new file with mode: 0644]
tests/phpunit/CiviTest/CiviUnitTestCase.php