->
create(Uuid::
randomHex(), TestDefaults::SALES_CHANNEL
);
} /**
* @dataProvider criteriaProvider
*/
public function testCriteria(Criteria
$criteria): void
{ $ids =
new IdsCollection();
$context =
$this->
createMock(SalesChannelContext::
class);
$response =
new ProductListingRouteResponse(new ProductListingResult('product', 0,
new ProductCollection(), null,
$criteria,
$context->
getContext()));
$core =
$this->
createMock(ProductListingRoute::
class);
$core->
expects(static::
exactly(2
)) ->
method('load'
) ->
willReturn($response);
$route =
new CachedProductListingRoute( $core,
$this->
getContainer()->
get('cache.object'
),
$this->
getContainer()->
get(EntityCacheKeyGenerator::
class),
$this->
getContainer()->
get(CacheTracer::
class),