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