From a8e23cbebccfdb289ef6bf3ad348576c8fe65121 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 25 Sep 2023 17:28:08 +0000 Subject: [PATCH] fix tests --- tests/Autoloader.php | 5 +++++ tests/phpunit_default.xml | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/Autoloader.php b/tests/Autoloader.php index 621bdc4..602019b 100755 --- a/tests/Autoloader.php +++ b/tests/Autoloader.php @@ -77,6 +77,11 @@ final class Autoloader { $class = \ltrim($class, '\\'); $class = \strtr($class, '_\\', '//'); + + if (\stripos($class, 'Web/Backend')) { + $class = \str_replace('Web', 'Install/Application', $class); + } + $class2 = $class; $pos = \stripos($class, '/'); diff --git a/tests/phpunit_default.xml b/tests/phpunit_default.xml index f45f39b..9891142 100755 --- a/tests/phpunit_default.xml +++ b/tests/phpunit_default.xml @@ -19,6 +19,7 @@ ../**/Admin/Hooks* ../**/Admin/Install* ../Media/Files* + ../tests/Admin* @@ -26,9 +27,6 @@ - - ../MainRepository/Install/tests* - ../tests*