$context =
$this->
createMock(SalesChannelContext::
class);
$response =
new SalutationRouteResponse( new EntitySearchResult('salutation', 0,
new SalutationCollection(), null,
$criteria,
$context->
getContext()) );
$core =
$this->
createMock(SalutationRoute::
class);
$core->
expects(static::
exactly(2
)) ->
method('load'
) ->
willReturn($response);
$route =
new CachedSalutationRoute( $core,
new TagAwareAdapter(new ArrayAdapter(100
)),
$this->
getContainer()->
get(EntityCacheKeyGenerator::
class),
$this->
getContainer()->
get(CacheTracer::
class),
$this->
getContainer()->
get('event_dispatcher'
),
[],
$this->
getContainer()->
get('logger'
) );
$route->
load(new Request(),
$context,
$criteria);