unit tests and bug fixes

This commit is contained in:
Dennis Eichhorn 2021-10-10 11:03:34 +02:00
parent cca53caff4
commit 0e16a43fde
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ class BackendControllerTest extends \PHPUnit\Framework\TestCase
$this->app->dbPool = $GLOBALS['dbpool'];
$this->app->orgId = 1;
$this->app->accountManager = new AccountManager($GLOBALS['session']);
$this->app->appSettings = new CoreSettings($this->app->dbPool->get());
$this->app->appSettings = new CoreSettings();
$this->app->moduleManager = new ModuleManager($this->app, __DIR__ . '/../../../Modules/');
$this->app->dispatcher = new Dispatcher($this->app);
$this->app->eventManager = new EventManager($this->app->dispatcher);

View File

@ -53,7 +53,7 @@ class ControllerTest extends \PHPUnit\Framework\TestCase
$this->app->dbPool = $GLOBALS['dbpool'];
$this->app->orgId = 1;
$this->app->accountManager = new AccountManager($GLOBALS['session']);
$this->app->appSettings = new CoreSettings($this->app->dbPool->get());
$this->app->appSettings = new CoreSettings();
$this->app->moduleManager = new ModuleManager($this->app, __DIR__ . '/../../../Modules/');
$this->app->dispatcher = new Dispatcher($this->app);
$this->app->eventManager = new EventManager($this->app->dispatcher);