$defaults =
[ 'section_storage' =>
$section_storage->
reveal(),
RouteObjectInterface::ROUTE_OBJECT =>
$route,
];
$expected =
[ 'section_storage' => 'the_return_value',
RouteObjectInterface::ROUTE_OBJECT =>
$route,
];
$enhancer =
new LayoutTempstoreRouteEnhancer($layout_tempstore_repository->
reveal());
$result =
$enhancer->
enhance($defaults,
new Request());
$this->
assertEquals($expected,
$result);
}}