From d07cfeb3dbc242c8b708cc590a7f3a3562abf2f9 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 27 Aug 2014 21:04:50 -0700 Subject: [PATCH] CRM_Case_PseudoConstantTest - Fix The old assertion was dependending on the previous test (e.g. the list of case-types added/removed). By changing the base class to CiviCaseTestCase, we get a more consistent (but different) starting point. --- tests/phpunit/CRM/Case/PseudoConstantTest.php | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/tests/phpunit/CRM/Case/PseudoConstantTest.php b/tests/phpunit/CRM/Case/PseudoConstantTest.php index 9e6394b01a..5df9ace7a8 100644 --- a/tests/phpunit/CRM/Case/PseudoConstantTest.php +++ b/tests/phpunit/CRM/Case/PseudoConstantTest.php @@ -1,10 +1,10 @@ loadAllFixtures(); - - CRM_Core_BAO_ConfigSetting::enableComponent('CiviCase'); - } - function testCaseType() { CRM_Core_PseudoConstant::flush(); $caseTypes = CRM_Case_PseudoConstant::caseType(); $expectedTypes = array( - 1 => 'Housing Support', + 1 => 'Housing Support', + 2 => 'Adult Day Care Referral', ); $this->assertEquals($expectedTypes, $caseTypes); } -- 2.25.1