fix tests

This commit is contained in:
Dennis Eichhorn 2023-09-26 03:03:31 +00:00
parent 4829e89917
commit 52af76a285

View File

@ -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;