mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-09 21:48:41 +00:00
change from org to unit
This commit is contained in:
parent
0bfb0c2fe1
commit
9cb5138201
|
|
@ -61,7 +61,7 @@ final class ClientTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
$this->app->logger = new FileLogger(__DIR__ . '/client.log', false);
|
$this->app->logger = new FileLogger(__DIR__ . '/client.log', false);
|
||||||
$this->app->dbPool = $GLOBALS['dbpool'];
|
$this->app->dbPool = $GLOBALS['dbpool'];
|
||||||
$this->app->orgId = 1;
|
$this->app->unitId = 1;
|
||||||
$this->app->cachePool = new CachePool($this->app->dbPool);
|
$this->app->cachePool = new CachePool($this->app->dbPool);
|
||||||
$this->app->accountManager = new AccountManager($GLOBALS['session']);
|
$this->app->accountManager = new AccountManager($GLOBALS['session']);
|
||||||
$this->app->appSettings = new CoreSettings();
|
$this->app->appSettings = new CoreSettings();
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ $app = new class() extends ApplicationAbstract
|
||||||
|
|
||||||
$app->logger = FileLogger::getInstance(__DIR__ . '/server.log', true);
|
$app->logger = FileLogger::getInstance(__DIR__ . '/server.log', true);
|
||||||
$app->dbPool = $GLOBALS['dbpool'];
|
$app->dbPool = $GLOBALS['dbpool'];
|
||||||
$app->orgId = 1;
|
$app->unitId = 1;
|
||||||
$app->cachePool = new CachePool($app->dbPool);
|
$app->cachePool = new CachePool($app->dbPool);
|
||||||
$app->accountManager = new AccountManager($GLOBALS['session']);
|
$app->accountManager = new AccountManager($GLOBALS['session']);
|
||||||
$app->appSettings = new CoreSettings($app->dbPool->get());
|
$app->appSettings = new CoreSettings($app->dbPool->get());
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ final class ServerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
$this->app->logger = new FileLogger(__DIR__ . '/server.log', false);
|
$this->app->logger = new FileLogger(__DIR__ . '/server.log', false);
|
||||||
$this->app->dbPool = $GLOBALS['dbpool'];
|
$this->app->dbPool = $GLOBALS['dbpool'];
|
||||||
$this->app->orgId = 1;
|
$this->app->unitId = 1;
|
||||||
$this->app->cachePool = new CachePool($this->app->dbPool);
|
$this->app->cachePool = new CachePool($this->app->dbPool);
|
||||||
$this->app->accountManager = new AccountManager($GLOBALS['session']);
|
$this->app->accountManager = new AccountManager($GLOBALS['session']);
|
||||||
$this->app->appSettings = new CoreSettings();
|
$this->app->appSettings = new CoreSettings();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user