From: Coleman Watts Date: Sat, 2 Aug 2014 16:59:39 +0000 (+0100) Subject: Re-add case_type pseudoconstant to schema X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=68fd48d9655d48be32800dc125fd6d6b93f56534;p=civicrm-core.git Re-add case_type pseudoconstant to schema --- diff --git a/tests/phpunit/CRM/Core/PseudoConstantTest.php b/tests/phpunit/CRM/Core/PseudoConstantTest.php index fd72fb4f5d..027b0b69ea 100644 --- a/tests/phpunit/CRM/Core/PseudoConstantTest.php +++ b/tests/phpunit/CRM/Core/PseudoConstantTest.php @@ -44,6 +44,10 @@ class CRM_Core_PseudoConstantTest extends CiviUnitTestCase { function setUp() { parent::setUp(); + + $this->loadAllFixtures(); + + CRM_Core_BAO_ConfigSetting::enableComponent('CiviCase'); } /** @@ -159,7 +163,7 @@ class CRM_Core_PseudoConstantTest extends CiviUnitTestCase { array( 'fieldName' => 'activity_type_id', 'sample' => 'Email', - 'max' => 50, + 'max' => 100, ), array( 'fieldName' => 'status_id', @@ -189,7 +193,7 @@ class CRM_Core_PseudoConstantTest extends CiviUnitTestCase { array( 'fieldName' => 'activity_type_id', 'sample' => 'Phone Call', - 'max' => 50, + 'max' => 100, ), ), 'CRM_Event_DAO_ParticipantStatusType' => array( @@ -551,6 +555,10 @@ class CRM_Core_PseudoConstantTest extends CiviUnitTestCase { 'fieldName' => 'status_id', 'sample' => 'Ongoing', ), + array( + 'fieldName' => 'case_type_id', + 'sample' => 'Housing Support', + ), ), ); diff --git a/xml/schema/Case/Case.xml b/xml/schema/Case/Case.xml index 53867e4a1b..77b565673d 100644 --- a/xml/schema/Case/Case.xml +++ b/xml/schema/Case/Case.xml @@ -47,6 +47,11 @@ Select + + civicrm_case_type
+ id + title +
2.0