From 70a2a762935040aee01d561d0ad83ed92f98417d Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Sat, 17 Sep 2022 10:43:15 -0400 Subject: [PATCH] classload extension test folders --- CRM/Extension/ClassLoader.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Extension/ClassLoader.php b/CRM/Extension/ClassLoader.php index bdd9ce6c68..9ca81638bf 100644 --- a/CRM/Extension/ClassLoader.php +++ b/CRM/Extension/ClassLoader.php @@ -164,6 +164,11 @@ class CRM_Extension_ClassLoader { case 'psr4': $loader->addPsr4($mapping['prefix'], $path . '/' . $mapping['path']); + if (defined('CIVICRM_TEST')) { + if (is_dir($path . '/tests/phpunit/' . $mapping['path'])) { + $loader->addPsr4($mapping['prefix'], $path . '/tests/phpunit/' . $mapping['path']); + } + } break; } } -- 2.25.1