From 2e655050d7975d4d5f0ec26a1cd08863e30690ee Mon Sep 17 00:00:00 2001 From: Kurund Jalmi Date: Wed, 6 Dec 2023 16:06:58 +0000 Subject: [PATCH] contact token test fixes --- tests/phpunit/CRM/Core/BAO/MessageTemplateTest.php | 6 ++++++ 1 file changed, 6 insertions(+) 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'); -- 2.25.1