mirror of
https://github.com/Karaka-Management/oms-FleetManagement.git
synced 2026-02-18 22:38:41 +00:00
fix tests
This commit is contained in:
parent
0e131f9f27
commit
2aae496726
|
|
@ -215,12 +215,12 @@ final class BackendController extends Controller
|
||||||
|
|
||||||
$view->data['inspections'] = $inspections;
|
$view->data['inspections'] = $inspections;
|
||||||
$view->data['vehicles'] = VehicleMapper::getAll()
|
$view->data['vehicles'] = VehicleMapper::getAll()
|
||||||
->where('id', \array_map(function (Inspection $inspection) { return $inspection->reference; }, $vehicles))
|
->where('id', \array_map(function (Inspection $inspection) : int { return $inspection->reference; }, $vehicles))
|
||||||
->executeGetArray();
|
->executeGetArray();
|
||||||
|
|
||||||
$view->data['drivers'] = DriverMapper::getAll()
|
$view->data['drivers'] = DriverMapper::getAll()
|
||||||
->with('account')
|
->with('account')
|
||||||
->where('id', \array_map(function (Inspection $inspection) { return $inspection->reference; }, $drivers))
|
->where('id', \array_map(function (Inspection $inspection) : int { return $inspection->reference; }, $drivers))
|
||||||
->executeGetArray();
|
->executeGetArray();
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user