From 7e719d7c2931cbc18a07c88d248003f34b5e4257 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 26 Apr 2024 00:07:59 +0000 Subject: [PATCH] test fix --- tests/Controller/ApiControllerTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Controller/ApiControllerTest.php b/tests/Controller/ApiControllerTest.php index dbd5b38..a6e0192 100755 --- a/tests/Controller/ApiControllerTest.php +++ b/tests/Controller/ApiControllerTest.php @@ -60,6 +60,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase $this->app->dbPool = $GLOBALS['dbpool']; $this->app->unitId = 1; + $this->app->appId = 1; $this->app->accountManager = new AccountManager($GLOBALS['session']); $this->app->appSettings = new CoreSettings(); $this->app->moduleManager = new ModuleManager($this->app, __DIR__ . '/../../../../Modules/'); @@ -74,7 +75,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase $permission = new AccountPermission(); $permission->unit = 1; - $permission->app = 2; + $permission->app = 1; $permission->setPermission( PermissionType::READ | PermissionType::CREATE