From: Kurund Jalmi Date: Wed, 6 Dec 2023 16:06:58 +0000 (+0000) Subject: contact token test fixes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2e655050d7975d4d5f0ec26a1cd08863e30690ee;p=civicrm-core.git contact token test fixes --- diff --git a/tests/phpunit/CRM/Core/BAO/MessageTemplateTest.php b/tests/phpunit/CRM/Core/BAO/MessageTemplateTest.php index d8a89fcbcb..bb05c97585 100644 --- a/tests/phpunit/CRM/Core/BAO/MessageTemplateTest.php +++ b/tests/phpunit/CRM/Core/BAO/MessageTemplateTest.php @@ -525,6 +525,12 @@ London, 90210 $tokenData = $this->getOldContactTokens(); $address = $this->setupContactFromTokeData($tokenData); $advertisedTokens = CRM_Core_SelectValues::contactTokens(); + + // let's unset specical afform submission tokens which are kind of related to contact + // but not exactly as contact is not yet created + unset($advertisedTokens['{afformSubmission.validateSubmissionUrl}']); + unset($advertisedTokens['{afformSubmission.validateSubmissionLink}']); + $this->assertEquals($this->getAdvertisedTokens(), $advertisedTokens); CRM_Core_Smarty::singleton()->assign('pre_assigned_smarty', 'woo');