Convert Smarty & domain token processing to use token processor
authoreileen <emcnaughton@wikimedia.org>
Sat, 6 Feb 2021 03:36:45 +0000 (16:36 +1300)
committereileen <emcnaughton@wikimedia.org>
Mon, 15 Feb 2021 03:39:40 +0000 (16:39 +1300)
commit82e5b7adb8855392d31268d21b6fefc61223a4cc
treefc127be1bc2bdf7d2d6324e906e982d2b777d2f5
parent661c69f4a77f431a9e113968efcba42b7ce5f224
Convert Smarty & domain token processing to use token processor

This is a subset of the changes in
https://github.com/civicrm/civicrm-core/pull/19550 that we should be able to resolve
& merge while addressing that takes longer. It still gets us the
benefit of adopting a preferred pattern

Note that some test changes exist around handling of subject -
the code now converts a new line to a space consistently. In addition
tests that rely on leakage have been altered as smarty does not leak with
this approach
CRM/Core/BAO/MessageTemplate.php
tests/phpunit/CRM/Core/BAO/MessageTemplateTest.php
tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php
tests/phpunit/api/v3/ContributionTest.php