KernelEvents::EXCEPTION,
DocumentTemplateRendererParameterEvent::
class,
],
array_keys($events));
} public function testThemesAreEmptyIfRequestHasNoValidAttributes(): void
{ $request = Request::
createFromGlobals();
$this->builder->
requestEvent(new RequestEvent($this->
createMock(HttpKernelInterface::
class),
$request, HttpKernelInterface::MAIN_REQUEST
));
$this->
assertThemes([],
$this->builder
);
} public function testThemesIfThemeNameIsSet(): void
{ $request = Request::
createFromGlobals();
$request->attributes->
set(SalesChannelRequest::ATTRIBUTE_THEME_NAME, 'TestTheme'
);
$this->builder->
requestEvent(new RequestEvent($this->
createMock(HttpKernelInterface::
class),
$request, HttpKernelInterface::MAIN_REQUEST
));
$this->
assertThemes([ 'Storefront' => true,