Skip to content

Commit

Permalink
Merge pull request #23903 from eileenmcnaughton/551
Browse files Browse the repository at this point in the history
Allow tests to pick up hook too
  • Loading branch information
eileenmcnaughton authored Jun 29, 2022
2 parents a4e1ab2 + 17e3442 commit 2883dd0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Civi/Core/ClassScanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ private static function buildIndex(\CRM_Utils_Cache_Interface $cache): array {
*/
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;
}

Expand Down

0 comments on commit 2883dd0

Please sign in to comment.