From 52af76a2858c21d36404ef13c389be031544fe6c Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 26 Sep 2023 03:03:31 +0000 Subject: [PATCH] fix tests --- tests/Controller/ApiControllerTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Controller/ApiControllerTest.php b/tests/Controller/ApiControllerTest.php index e70f7bf..6768d70 100755 --- a/tests/Controller/ApiControllerTest.php +++ b/tests/Controller/ApiControllerTest.php @@ -86,9 +86,11 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase $this->app->accountManager->add($account); $this->app->router = new WebRouter(); - $this->module = $this->app->moduleManager->get('FleetManagement'); + $this->module = $this->app->moduleManager->get('FleetManagement', 'Api'); + $this->attrModule = $this->app->moduleManager->get('FleetManagement', 'ApiVehicleAttribute'); TestUtils::setMember($this->module, 'app', $this->app); + TestUtils::setMember($this->attrModule, 'app', $this->app); } use ApiControllerAttributeTrait;