contact token test fixes
authorKurund Jalmi <kurundjalmi@thirdsectordesign.org>
Wed, 6 Dec 2023 16:06:58 +0000 (16:06 +0000)
committerKurund Jalmi <kurundjalmi@thirdsectordesign.org>
Wed, 6 Dec 2023 16:06:58 +0000 (16:06 +0000)
tests/phpunit/CRM/Core/BAO/MessageTemplateTest.php

index d8a89fcbcbb74ef935c7354f79ee368010833576..bb05c97585b39455d726aae2da374706acc81d77 100644 (file)
@@ -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');