Add test for participant receipts, super minor consistency fix.
authoreileen <emcnaughton@wikimedia.org>
Wed, 16 Oct 2019 22:43:05 +0000 (11:43 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 17 Oct 2019 19:47:54 +0000 (08:47 +1300)
commit7a2ee4179f7198ae42c133356ed206ab3b4e1faa
tree80a45b855f1ff85d216578fdc8d94936835729ec
parent0a5b0a1ad5648e8070bf5e59565bb60fa962c514
Add test for participant receipts, super minor consistency fix.

This is mostly adding testing for participant receipts. The one change to core code is to move the assignment
of contactID to the template from a specific path into the shared code. This parameter is not required by
the templates but it is somewhat common for sites to want to have it assigned to templates for
customisation which is presumably why it's there. Since it is there in one path we should either remove or
have it in all & for a field like contactID all makes sense. Tests lock in that var
CRM/Event/BAO/Event.php
CRM/Event/Form/Registration/Confirm.php
tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php
tests/phpunit/CiviTest/CiviUnitTestCase.php
tests/templates/message_templates/event_online_receipt_text.tpl [new file with mode: 0644]