From 68fd48d9655d48be32800dc125fd6d6b93f56534 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 2 Aug 2014 17:59:39 +0100 Subject: [PATCH] Re-add case_type pseudoconstant to schema --- tests/phpunit/CRM/Core/PseudoConstantTest.php | 12 ++++++++++-- xml/schema/Case/Case.xml | 5 +++++ 2 files changed, 15 insertions(+), 2 deletions(-) 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 -- 2.25.1