From 555ea33da785dc40dc38d633c0b18e609ee46272 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 25 Sep 2023 22:54:38 +0000 Subject: [PATCH] fix tests --- info.json | 2 +- tests/Admin/AdminTest.php | 2 +- tests/Autoloader.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/info.json b/info.json index 7d26d97..a93faf4 100644 --- a/info.json +++ b/info.json @@ -26,7 +26,7 @@ "load": [ { "pid": [ - "/cash" + "/accounting/cash" ], "type": 4, "for": "Content", diff --git a/tests/Admin/AdminTest.php b/tests/Admin/AdminTest.php index 1492082..0e83d62 100644 --- a/tests/Admin/AdminTest.php +++ b/tests/Admin/AdminTest.php @@ -21,7 +21,7 @@ final class AdminTest extends \PHPUnit\Framework\TestCase { 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; } diff --git a/tests/Autoloader.php b/tests/Autoloader.php index a6e0894..b23e8e6 100644 --- a/tests/Autoloader.php +++ b/tests/Autoloader.php @@ -78,7 +78,7 @@ final class Autoloader $class = \ltrim($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); }