From 17e3442e342a7b0e3725dd796f1d20fd6cfa2f95 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 29 Jun 2022 17:40:21 +1200 Subject: [PATCH] Allow tests to pick up hook too --- Civi/Core/ClassScanner.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Civi/Core/ClassScanner.php b/Civi/Core/ClassScanner.php index d1b3523616..e5ed6d67cd 100644 --- a/Civi/Core/ClassScanner.php +++ b/Civi/Core/ClassScanner.php @@ -111,9 +111,7 @@ class ClassScanner { */ private static function scanClasses(): array { $classes = static::scanCoreClasses(); - if (\CRM_Utils_Constant::value('CIVICRM_UF') !== 'UnitTests') { - \CRM_Utils_Hook::scanClasses($classes); - } + \CRM_Utils_Hook::scanClasses($classes); return $classes; } -- 2.25.1