From 91241e8297fb2755166ab568b18a595df0217829 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 2 Oct 2023 02:56:46 +0000 Subject: [PATCH] fix autoloading --- tests/Autoloader.php | 3 +-- tests/phpunit_default.xml | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Autoloader.php b/tests/Autoloader.php index 84c72a3..1647b32 100644 --- a/tests/Autoloader.php +++ b/tests/Autoloader.php @@ -36,7 +36,6 @@ final class Autoloader __DIR__ . '/../', __DIR__ . '/../MainRepository/', __DIR__ . '/../../', - __DIR__ . '/../../Karaka/', ]; /** @@ -80,7 +79,7 @@ final class Autoloader $class = \strtr($class, '_\\', '//'); if (\stripos($class, 'Web/Backend') !== false || \stripos($class, 'Web/Api') !== false) { - $class = \is_dir(__DIR__ . '/Web') ? $class : \str_replace('Web/', 'Karaka/Web/', $class); + $class = \is_dir(__DIR__ . '/Web') ? $class : \str_replace('Web/', 'MainRepository/Web/', $class); } $class2 = $class; diff --git a/tests/phpunit_default.xml b/tests/phpunit_default.xml index ad47a51..d350430 100644 --- a/tests/phpunit_default.xml +++ b/tests/phpunit_default.xml @@ -7,6 +7,7 @@ ../vendor* ../MainRepository* + ../Karaka* ../Admin/Install/Application* ../phpOMS* ../tests*