From 44b06da79d693789bd3ad7aa0df12e6568b8e470 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 29 Oct 2013 09:16:18 -0700 Subject: [PATCH] CRM_Utils_HookTest - Fix regression due to new runHooks() signature --- tests/phpunit/CRM/Utils/HookTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/CRM/Utils/HookTest.php b/tests/phpunit/CRM/Utils/HookTest.php index 1a190eecc7..54a8353c55 100644 --- a/tests/phpunit/CRM/Utils/HookTest.php +++ b/tests/phpunit/CRM/Utils/HookTest.php @@ -31,7 +31,7 @@ class CRM_Utils_HookTest extends CiviUnitTestCase { */ function testRunHooks_reentrancy() { $arg1 = 'whatever'; - $this->hook->runHooks($this->fakeModules, 'civicrm_testRunHooks_outer', 1, $arg1, CRM_Utils_Hook::$_nullObject, CRM_Utils_Hook::$_nullObject, CRM_Utils_Hook::$_nullObject, CRM_Utils_Hook::$_nullObject); + $this->hook->runHooks($this->fakeModules, 'civicrm_testRunHooks_outer', 1, $arg1, CRM_Utils_Hook::$_nullObject, CRM_Utils_Hook::$_nullObject, CRM_Utils_Hook::$_nullObject, CRM_Utils_Hook::$_nullObject, CRM_Utils_Hook::$_nullObject); $this->assertEquals( array( 'a-outer', @@ -56,7 +56,7 @@ function hooktesta_civicrm_testRunHooks_outer() { function hooktestb_civicrm_testRunHooks_outer() { $test = CRM_Utils_HookTest::$activeTest; $test->log[] = 'b-outer-1'; - $test->hook->runHooks($test->fakeModules, 'civicrm_testRunHooks_inner', 0, CRM_Utils_Hook::$_nullObject, CRM_Utils_Hook::$_nullObject, CRM_Utils_Hook::$_nullObject, CRM_Utils_Hook::$_nullObject, CRM_Utils_Hook::$_nullObject); + $test->hook->runHooks($test->fakeModules, 'civicrm_testRunHooks_inner', 0, CRM_Utils_Hook::$_nullObject, CRM_Utils_Hook::$_nullObject, CRM_Utils_Hook::$_nullObject, CRM_Utils_Hook::$_nullObject, CRM_Utils_Hook::$_nullObject, CRM_Utils_Hook::$_nullObject); $test->log[] = 'b-outer-2'; } -- 2.25.1