From e62ba4a7c988c725927522e14f7807b242461587 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Sat, 6 Aug 2022 18:56:42 -0400 Subject: [PATCH] webtests no longer exist --- CRM/Core/ClassLoader.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/CRM/Core/ClassLoader.php b/CRM/Core/ClassLoader.php index 36e8e1125910..0501e6bdac06 100644 --- a/CRM/Core/ClassLoader.php +++ b/CRM/Core/ClassLoader.php @@ -152,7 +152,7 @@ public function loadClass($class) { if ( // Only load classes that clearly belong to CiviCRM. // Note: api/v3 does not use classes, but api_v3's test-suite does - (0 === strncmp($class, 'CRM_', 4) || 0 === strncmp($class, 'CRMTraits', 9) || 0 === strncmp($class, 'api_v3_', 7) || 0 === strncmp($class, 'WebTest_', 8) || 0 === strncmp($class, 'E2E_', 4)) && + (0 === strncmp($class, 'CRM_', 4) || 0 === strncmp($class, 'CRMTraits', 9) || 0 === strncmp($class, 'api_v3_', 7) || 0 === strncmp($class, 'E2E_', 4)) && // Do not load PHP 5.3 namespaced classes. // (in a future version, maybe) FALSE === strpos($class, '\\') @@ -171,14 +171,6 @@ public function loadClass($class) { require_once $file; } } - elseif ($class === 'CiviSeleniumSettings') { - if (!empty($GLOBALS['_CV'])) { - require_once 'tests/phpunit/CiviTest/CiviSeleniumSettings.auto.php'; - } - elseif (CRM_Utils_File::isIncludable('tests/phpunit/CiviTest/CiviSeleniumSettings.php')) { - require_once 'tests/phpunit/CiviTest/CiviSeleniumSettings.php'; - } - } } }