mirror of
https://github.com/Karaka-Management/oms-StockTaking.git
synced 2026-01-11 18:38:39 +00:00
fix tests
This commit is contained in:
parent
31e51019b2
commit
f3a66a1985
|
|
@ -21,7 +21,7 @@ final class AdminTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
protected const NAME = 'StockTaking';
|
protected const NAME = 'StockTaking';
|
||||||
|
|
||||||
protected const URI_LOAD = '';
|
protected const URI_LOAD = 'http://127.0.0.1/en/warehouse/stocktaking';
|
||||||
|
|
||||||
use \tests\Modules\ModuleTestTrait;
|
use \tests\Modules\ModuleTestTrait;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user