} public function testStoreApiPresent(): void
{ $browser =
$this->
createCustomSalesChannelBrowser([ 'id' => TestDefaults::SALES_CHANNEL,
'languages' =>
[],
]);
$browser->
setServerParameter('HTTP_' . PlatformRequest::HEADER_CONTEXT_TOKEN, '1234'
);
$browser->
setServerParameter('HTTP_' . PlatformRequest::HEADER_VERSION_ID, '1234'
);
$browser->
setServerParameter('HTTP_' . PlatformRequest::HEADER_LANGUAGE_ID, Uuid::
randomHex());
$browser->
request('GET', '/store-api/checkout/cart'
);
$response =
$browser->
getResponse();
static::
assertTrue($response->headers->
has(PlatformRequest::HEADER_CONTEXT_TOKEN
));
static::
assertTrue($response->headers->
has(PlatformRequest::HEADER_VERSION_ID
));
static::
assertTrue($response->headers->
has(PlatformRequest::HEADER_LANGUAGE_ID
));
} /**
* @param array<string, string> $routeParameters
*
* @dataProvider dataProviderRevalidateRoutes
*/