Stop testing for gender_id output that was described as 'legacy' years ago
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 18 Sep 2021 02:21:50 +0000 (14:21 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 21 Sep 2021 01:26:23 +0000 (13:26 +1200)
This token is not 'advertised' in the widget. I think removing this

tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php

index 5ff49af24f7217bcc543eb3ffa8a2ecc465cd65d..07244a71c76d5f5b546c6287a79fc5448bd58b61 100644 (file)
@@ -880,8 +880,6 @@ class CRM_Core_BAO_ActionScheduleTest extends CiviUnitTestCase {
       '{contact.display_name}',
       // funny legacy contact token
       '{contact.gender}',
-      // funny legacy contact token
-      '{contact.gender_id}',
       // domain token
       '{domain.name}',
       // action-scheduler token
@@ -896,7 +894,7 @@ class CRM_Core_BAO_ActionScheduleTest extends CiviUnitTestCase {
     ]);
     // Note: The behavior of domain-tokens on a scheduled reminder is undefined. All we
     // can really do is check that it has something.
-    $someTokensExpected = 'Churmondleia Ōtākou;;Female;;Female;;[a-zA-Z0-9 ]+;;Phone Call';
+    $someTokensExpected = 'Churmondleia Ōtākou;;Female;;[a-zA-Z0-9 ]+;;Phone Call';
     $manyTokensExpected = sprintf('%s;;Dear Churmondleia;;%s', $someTokensExpected, '{contactCustomTokenValue}');
 
     // In this example, we use a lot of tokens cutting across multiple components.