diff --git a/tests/Admin/AdminTest.php b/tests/Admin/AdminTest.php index fea44d6..75eacee 100644 --- a/tests/Admin/AdminTest.php +++ b/tests/Admin/AdminTest.php @@ -19,9 +19,9 @@ namespace Modules\QualityManagement\tests\Admin; */ final class AdminTest extends \PHPUnit\Framework\TestCase { - protected const NAME = 'http://127.0.0.1/en/backend/qualitymanagement'; + protected const NAME = 'QualityManagement'; - protected const URI_LOAD = ''; + protected const URI_LOAD = 'http://127.0.0.1/en/backend/qualitymanagement'; 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); }