From feba8961405d1a1944e81cedd5b8025d9ae7493a Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 27 Sep 2023 03:57:32 +0000 Subject: [PATCH] fix tests --- tests/Autoloader.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Autoloader.php b/tests/Autoloader.php index b23e8e6..635fe39 100755 --- a/tests/Autoloader.php +++ b/tests/Autoloader.php @@ -12,9 +12,9 @@ */ declare(strict_types=1); -namespace tests; +namespace Modules\Accounting\tests; -\spl_autoload_register('\tests\Autoloader::defaultAutoloader'); +\spl_autoload_register('\Modules\Accounting\tests\Autoloader::defaultAutoloader'); /** * Autoloader class. @@ -80,6 +80,8 @@ final class Autoloader if (\stripos($class, 'Web/Backend') !== false || \stripos($class, 'Web/Api') !== false) { $class = \str_replace('Web/', 'Install/Application/', $class); + } elseif (\stripos($class, 'Autoloader') !== false) { + $class = 'tests/Autoloader.php'; } $class2 = $class;