INFRA-132 - tests/ - phpcbf
[civicrm-core.git] / tests / phpunit / CiviTest / CiviCaseTestCase.php
index 9fe873a62a11f26903f30083eaff44f612d6e10c..20d02765d91ccd3088d188cceb0842433c78f3e4 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -52,6 +52,7 @@ class CiviCaseTestCase extends CiviUnitTestCase {
     $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
@@ -125,9 +126,8 @@ class CiviCaseTestCase extends CiviUnitTestCase {
    * 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);
@@ -139,6 +139,6 @@ class CiviCaseTestCase extends CiviUnitTestCase {
    * @param $caseTypes
    * @see CRM_Utils_Hook::caseTypes
    */
-  function hook_caseTypes(&$caseTypes) {
+  public function hook_caseTypes(&$caseTypes) {
   }
-}
\ No newline at end of file
+}