Merge pull request #3096 from mepps/remove-autocomplete-email
[civicrm-core.git] / tests / phpunit / CRM / Case / PseudoConstantTest.php
1 <?php
2 require_once 'CiviTest/CiviUnitTestCase.php';
3
4 class CRM_Case_PseudoConstantTest extends CiviUnitTestCase {
5 function get_info() {
6 return array(
7 'name' => 'Case PseudoConstants',
8 'description' => 'Test Case_PseudoConstant methods.',
9 'group' => 'Case',
10 );
11 }
12
13 function setUp() {
14 parent::setUp();
15
16 $this->loadAllFixtures();
17
18 CRM_Core_BAO_ConfigSetting::enableComponent('CiviCase');
19 }
20
21 function testCaseType() {
22 $caseTypes = CRM_Case_PseudoConstant::caseType();
23 $expectedTypes = array(
24 1 => 'Housing Support',
25 );
26 $this->assertEquals($expectedTypes, $caseTypes);
27 }
28 }