From 8f62983878b60eacb72f8b4e0b4a9b16ee14b7f3 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 28 Nov 2020 19:26:40 +0100 Subject: [PATCH] fix tests --- tests/Admin/AdminTest.php | 2 +- tests/Controller/SearchControllerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Admin/AdminTest.php b/tests/Admin/AdminTest.php index 980c90c..b15b601 100755 --- a/tests/Admin/AdminTest.php +++ b/tests/Admin/AdminTest.php @@ -46,7 +46,7 @@ class AdminTest extends \PHPUnit\Framework\TestCase $account = AccountMapper::getWithPermissions(1); $nav = Navigation::getInstance($request, $account, $GLOBALS['dbpool'], 1, 'Backend')->getNav(); - $moduleManager = new ModuleManager($this->app, __DIR__ . '/../../../../Modules'); + $moduleManager = new ModuleManager($this->app, __DIR__ . '/../../../../Modules/'); $modules = $moduleManager->getInstalledModules(false); self::assertGreaterThan(0, \count($nav)); diff --git a/tests/Controller/SearchControllerTest.php b/tests/Controller/SearchControllerTest.php index ffa3ef3..c3970b0 100644 --- a/tests/Controller/SearchControllerTest.php +++ b/tests/Controller/SearchControllerTest.php @@ -58,7 +58,7 @@ class SearchControllerTest extends \PHPUnit\Framework\TestCase $this->app->orgId = 1; $this->app->accountManager = new AccountManager($GLOBALS['session']); $this->app->appSettings = new CoreSettings($this->app->dbPool->get()); - $this->app->moduleManager = new ModuleManager($this->app, __DIR__ . '/../../../../Modules'); + $this->app->moduleManager = new ModuleManager($this->app, __DIR__ . '/../../../../Modules/'); $this->app->dispatcher = new Dispatcher($this->app); $this->app->l11nManager = new L11nManager($this->app->appName); $this->app->eventManager = new EventManager($this->app->dispatcher);