api_v3_ACLPermissionTest - Fix PHP fatalwith undefined object
authorTim Otten <totten@civicrm.org>
Mon, 3 Jun 2013 02:19:47 +0000 (22:19 -0400)
committerTim Otten <totten@civicrm.org>
Mon, 3 Jun 2013 02:19:47 +0000 (22:19 -0400)
tests/phpunit/api/v3/ACLPermissionTest.php

index 611c170a82ec000f4fecb320708c773183de5a55..7686f66cad02cdf814f390ff467e4e1ce56a71c8 100644 (file)
@@ -58,7 +58,7 @@ class api_v3_ACLPermissionTest extends CiviUnitTestCase {
  * @see CiviUnitTestCase::tearDown()
  */
   function tearDown() {
-    $this->hookClass->reset();
+    CRM_Utils_Hook::singleton()->reset();
     $tablesToTruncate = array(
         'civicrm_contact',
     );