dev/core#2832 Add test for legacy membership tokens, add support for preferred tokens
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 13 Sep 2021 05:34:34 +0000 (17:34 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 13 Sep 2021 05:34:41 +0000 (17:34 +1200)
commitd41a5d539b9fbb6b44b364ac016e7c3d47005c91
treebc34771049ffe9d0be77ce90b0c8eded6a574ef3
parent24ae4af56d9cb907e36cd850d8e5446a69d151e7
dev/core#2832 Add test for legacy membership tokens, add support for preferred tokens

There is only one place that calls this code. With cover of the legacy tokens
I can ensure it is the same as the processor tokens. I've fixed it
to support the preferred unambiguous tokens because that means that
we don't have to deal with reports of them not working while calls
to it are phased out of extensions. Working through that
also allowed me to remove some code now
CRM/Utils/Token.php
tests/phpunit/CRM/Utils/TokenConsistencyTest.php