Merge branch '4.4' into master
[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 CRM_Core_PseudoConstant::flush();
23 $caseTypes = CRM_Case_PseudoConstant::caseType();
24 $expectedTypes = array(
25 1 => 'Housing Support',
26 );
27 $this->assertEquals($expectedTypes, $caseTypes);
28 }
29 }