<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
require_once 'CiviTest/CiviUnitTestCase.php';
$hooks = \CRM_Utils_Hook::singleton();
$hooks->setHook('civicrm_caseTypes', array($this, 'hook_caseTypes'));
\CRM_Case_XMLRepository::singleton(TRUE);
+ \CRM_Case_XMLProcessor::flushStaticCaches();
// CRM-9404 - set-up is a bit cumbersome but had to put something in place to set up activity types & case types
//. Using XML was causing breakage as id numbers were changing over time
// state where tests could run afterwards without re-loading.
$this->caseStatusGroup = $this->callAPISuccess('option_group', 'get', array(
'name' => 'case_status',
- 'format.only_id' => 1
+ 'format.only_id' => 1,
)
);
$optionValues = array(
'civicrm_case_activity',
'civicrm_case_type',
'civicrm_activity_contact',
+ 'civicrm_managed',
'civicrm_relationship',
'civicrm_relationship_type',
);
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
- * @access protected
*/
- function tearDown() {
+ public function tearDown() {
$this->quickCleanup($this->tablesToTruncate, TRUE);
$this->customDirectories(array('template_path' => FALSE));
CRM_Case_XMLRepository::singleton(TRUE);
* @param $caseTypes
* @see CRM_Utils_Hook::caseTypes
*/
- function hook_caseTypes(&$caseTypes) {
+ public function hook_caseTypes(&$caseTypes) {
}
-}
\ No newline at end of file
+
+}