fix tests

This commit is contained in:
Dennis Eichhorn 2024-04-25 13:34:46 +00:00
parent 2aae496726
commit 12a6fe0a7c

View File

@ -184,6 +184,7 @@ final class BackendController extends Controller
$view->setTemplate('/Modules/FleetManagement/Theme/Backend/inspection-list');
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003504001, $request, $response);
/** @var \Modules\FleetManagement\Models\Inspection[] $vehicles */
$vehicles = InspectionMapper::getAll()
->with('type')
->with('type/l11n')
@ -192,6 +193,7 @@ final class BackendController extends Controller
->limit(100)
->executeGetArray();
/** @var \Modules\FleetManagement\Models\Inspection[] $drivers */
$drivers = DriverInspectionMapper::getAll()
->with('type')
->with('type/l11n')
@ -200,6 +202,7 @@ final class BackendController extends Controller
->limit(100)
->executeGetArray();
/** @var array{type:string, inspection:\Modules\FleetManagement\Models\Inspection} */
$inspections = [];
foreach ($vehicles as $inspection) {
$inspections[] = ['type' => 'vehicle', 'inspection' => $inspection];