mirror of
https://github.com/Karaka-Management/oms-FleetManagement.git
synced 2026-02-17 05:48:41 +00:00
fix tests
This commit is contained in:
parent
2aae496726
commit
12a6fe0a7c
|
|
@ -184,6 +184,7 @@ final class BackendController extends Controller
|
||||||
$view->setTemplate('/Modules/FleetManagement/Theme/Backend/inspection-list');
|
$view->setTemplate('/Modules/FleetManagement/Theme/Backend/inspection-list');
|
||||||
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003504001, $request, $response);
|
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003504001, $request, $response);
|
||||||
|
|
||||||
|
/** @var \Modules\FleetManagement\Models\Inspection[] $vehicles */
|
||||||
$vehicles = InspectionMapper::getAll()
|
$vehicles = InspectionMapper::getAll()
|
||||||
->with('type')
|
->with('type')
|
||||||
->with('type/l11n')
|
->with('type/l11n')
|
||||||
|
|
@ -192,6 +193,7 @@ final class BackendController extends Controller
|
||||||
->limit(100)
|
->limit(100)
|
||||||
->executeGetArray();
|
->executeGetArray();
|
||||||
|
|
||||||
|
/** @var \Modules\FleetManagement\Models\Inspection[] $drivers */
|
||||||
$drivers = DriverInspectionMapper::getAll()
|
$drivers = DriverInspectionMapper::getAll()
|
||||||
->with('type')
|
->with('type')
|
||||||
->with('type/l11n')
|
->with('type/l11n')
|
||||||
|
|
@ -200,6 +202,7 @@ final class BackendController extends Controller
|
||||||
->limit(100)
|
->limit(100)
|
||||||
->executeGetArray();
|
->executeGetArray();
|
||||||
|
|
||||||
|
/** @var array{type:string, inspection:\Modules\FleetManagement\Models\Inspection} */
|
||||||
$inspections = [];
|
$inspections = [];
|
||||||
foreach ($vehicles as $inspection) {
|
foreach ($vehicles as $inspection) {
|
||||||
$inspections[] = ['type' => 'vehicle', 'inspection' => $inspection];
|
$inspections[] = ['type' => 'vehicle', 'inspection' => $inspection];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user