change from org to unit

This commit is contained in:
Dennis Eichhorn 2023-01-26 21:42:31 +01:00
parent 0bfb0c2fe1
commit 9cb5138201
3 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ final class ClientTest extends \PHPUnit\Framework\TestCase
$this->app->logger = new FileLogger(__DIR__ . '/client.log', false);
$this->app->dbPool = $GLOBALS['dbpool'];
$this->app->orgId = 1;
$this->app->unitId = 1;
$this->app->cachePool = new CachePool($this->app->dbPool);
$this->app->accountManager = new AccountManager($GLOBALS['session']);
$this->app->appSettings = new CoreSettings();

View File

@ -51,7 +51,7 @@ $app = new class() extends ApplicationAbstract
$app->logger = FileLogger::getInstance(__DIR__ . '/server.log', true);
$app->dbPool = $GLOBALS['dbpool'];
$app->orgId = 1;
$app->unitId = 1;
$app->cachePool = new CachePool($app->dbPool);
$app->accountManager = new AccountManager($GLOBALS['session']);
$app->appSettings = new CoreSettings($app->dbPool->get());

View File

@ -61,7 +61,7 @@ final class ServerTest extends \PHPUnit\Framework\TestCase
$this->app->logger = new FileLogger(__DIR__ . '/server.log', false);
$this->app->dbPool = $GLOBALS['dbpool'];
$this->app->orgId = 1;
$this->app->unitId = 1;
$this->app->cachePool = new CachePool($this->app->dbPool);
$this->app->accountManager = new AccountManager($GLOBALS['session']);
$this->app->appSettings = new CoreSettings();