CiviCase - Consistently use name "housing_support" and "adult_day_care_referral"
[civicrm-core.git] / tests / phpunit / CiviTest / CiviCaseTestCase.php
index 8f80ebc335dab466f107f08a15d85491cb4a276b..eb28b6efc1b68e9bc6093aa9f101d8addfc6ddc0 100644 (file)
@@ -81,8 +81,9 @@ class CiviCaseTestCase extends CiviUnitTestCase {
       $this->optionValues[] = $activityTypes['id'];
     }
 
-    // TODO Our data seems inconsistent on whether name is "HousingSupport" or "housing_support"
-    $this->caseType = 'HousingSupport';
+    // We used to be inconsistent about "HousingSupport" vs "housing_support".
+    // Now, the rule is simply: use the "name" from "civicrm_case_type.name".
+    $this->caseType = 'housing_support';
     $this->caseTypeId = 1;
     $this->tablesToTruncate = array(
       'civicrm_activity',