mirror of
https://github.com/Karaka-Management/oms-CashManagement.git
synced 2026-01-11 15:18:44 +00:00
fix tests
This commit is contained in:
parent
4211fd3c37
commit
555ea33da7
|
|
@ -26,7 +26,7 @@
|
|||
"load": [
|
||||
{
|
||||
"pid": [
|
||||
"/cash"
|
||||
"/accounting/cash"
|
||||
],
|
||||
"type": 4,
|
||||
"for": "Content",
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user