[Ref] intial testing on case tokens, make knownTokens optional
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 27 Aug 2021 23:39:42 +0000 (11:39 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 28 Aug 2021 00:02:33 +0000 (12:02 +1200)
commitd0ce76fd69e30ebb398a77b913f483a6049ccd35
tree550102e4e260181660e52bde65583c257976ef5a
parentd0f900f0e2445dbae1f82510f89feccfb5781b92
[Ref] intial testing on case tokens, make knownTokens optional

There is a perception in the token code that passing around knownTokens is more performant

This may or may not be true - but since the goal is to migrate the code to the
token processor making the code simpler is
a higher priority as any performance change will change again.

This makes knownTokens optional in the replaceCaseTokens and adds test cover.
It is a step towards simplification in the PdfLetter code
which could be simplified if not needing to pass in knowntokens here
CRM/Utils/Token.php
tests/phpunit/CRM/Utils/TokenConsistencyTest.php [new file with mode: 0644]