public function testLoadWithEnabledCacheWillReturnDataFromCache(): void
{ $this->decorated
->
expects(static::
never()) ->
method('load'
);
$this->cache
->
expects(static::
once()) ->
method('get'
) ->
willReturn( CacheValueCompressor::
compress( new ProductSuggestRouteResponse(new ProductEntity()) ) );
$this->eventDispatcher->
addListener( ProductSuggestRouteCacheKeyEvent::
class,
fn (ProductSuggestRouteCacheKeyEvent
$event) =>
$event );
$this->cachedRout->
load(new Request(),
$this->context,
new Criteria());
}}