From 0e16a43fde09d3362dffd47bb4dd50573a98e333 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 10 Oct 2021 11:03:34 +0200 Subject: [PATCH] unit tests and bug fixes --- tests/BackendControllerTest.php | 2 +- tests/ControllerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/BackendControllerTest.php b/tests/BackendControllerTest.php index 75349af..d1e8420 100755 --- a/tests/BackendControllerTest.php +++ b/tests/BackendControllerTest.php @@ -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); diff --git a/tests/ControllerTest.php b/tests/ControllerTest.php index 7818d33..68f95a9 100755 --- a/tests/ControllerTest.php +++ b/tests/ControllerTest.php @@ -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);