Page MenuHomePhabricator

Resolve core CiviCRM test regression without hack
Closed, ResolvedPublic

Description

I have had to hack core to get 5.58 to pass tests - 'Done' is removing the hack which looks like

--- a/drupal/sites/all/modules/civicrm/mixin/scan-classes@1/mixin.php
+++ b/drupal/sites/all/modules/civicrm/mixin/scan-classes@1/mixin.php
@@ -54,8 +54,10 @@ return function ($mixInfo, $bootCache) {
       \Civi\Core\ClassScanner::scanFolders($all, $baseDir, 'CRM', '_');
       \Civi\Core\ClassScanner::scanFolders($all, $baseDir, 'Civi', '\\');
       if (defined('CIVICRM_TEST')) {
-        \Civi\Core\ClassScanner::scanFolders($all, "$baseDir/tests/phpunit", 'CRM', '_');
-        \Civi\Core\ClassScanner::scanFolders($all, "$baseDir/tests/phpunit", 'Civi', '\\');
+        // Bug T327360
+        // https://lab.civicrm.org/dev/core/-/issues/4088
+        // \Civi\Core\ClassScanner::scanFolders($all, "$baseDir/tests/phpunit", 'CRM', '_');
+        // \Civi\Core\ClassScanner::scanFolders($all, "$baseDir/tests/phpunit", 'Civi', '\\');
       }
       $cache->set($cacheKey, $all, \Civi\Core\ClassScanner::TTL);
     }
:

I have described & logged the issue upstream
https://lab.civicrm.org/dev/core/-/issues/4088