fix tests

This commit is contained in:
Dennis Eichhorn 2023-09-25 22:54:38 +00:00
parent 4211fd3c37
commit 555ea33da7
3 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@
"load": [ "load": [
{ {
"pid": [ "pid": [
"/cash" "/accounting/cash"
], ],
"type": 4, "type": 4,
"for": "Content", "for": "Content",

View File

@ -21,7 +21,7 @@ final class AdminTest extends \PHPUnit\Framework\TestCase
{ {
protected const NAME = 'CashManagement'; protected const NAME = 'CashManagement';
protected const URI_LOAD = 'http://127.0.0.1/en/backend/cash'; protected const URI_LOAD = 'http://127.0.0.1/en/backend/accounting/cash';
use \tests\Modules\ModuleTestTrait; use \tests\Modules\ModuleTestTrait;
} }

View File

@ -78,7 +78,7 @@ final class Autoloader
$class = \ltrim($class, '\\'); $class = \ltrim($class, '\\');
$class = \strtr($class, '_\\', '//'); $class = \strtr($class, '_\\', '//');
if (\stripos($class, 'Web/Backend')) { if (\stripos($class, 'Web/Backend') !== false || \stripos($class, 'Web/Api') !== false) {
$class = \str_replace('Web/', 'Install/Application/', $class); $class = \str_replace('Web/', 'Install/Application/', $class);
} }