'frontend.account.guest.login.page' =>
[],
'frontend.checkout.cart.page' =>
[],
'frontend.checkout.confirm.page' =>
[],
'frontend.checkout.finish.page' =>
[],
'frontend.account.register.page' =>
[],
'frontend.checkout.register.page' =>
[],
'frontend.account.customer-group-registration.page' =>
['customerGroupId' => 'abc'
],
];
public function testHomeController(): void
{ $browser = KernelLifecycleManager::
createBrowser(KernelLifecycleManager::
getKernel());
$browser->
setServerParameter('HTTP_' . PlatformRequest::HEADER_CONTEXT_TOKEN, '1234'
);
$browser->
setServerParameter('HTTP_' . PlatformRequest::HEADER_VERSION_ID, '1234'
);
$browser->
setServerParameter('HTTP_' . PlatformRequest::HEADER_LANGUAGE_ID, '1234'
);
$browser->
request('GET',
$_SERVER['APP_URL'
]);
$response =
$browser->
getResponse();
static::
assertFalse($response->headers->
has(PlatformRequest::HEADER_CONTEXT_TOKEN
));
static::
assertFalse($response->headers->
has(PlatformRequest::HEADER_VERSION_ID
));
static::
assertFalse($response->headers->
has(PlatformRequest::HEADER_LANGUAGE_ID
));
}