fix tests

This commit is contained in:
Dennis Eichhorn 2023-09-25 22:54:40 +00:00
parent 31e51019b2
commit f3a66a1985
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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);
}