'parentThemeName' => null,
]);
$builder =
new ThemeNamespaceHierarchyBuilder(new TestInheritanceBuilder(),
$themeLoader);
$builder->
onDocumentRendering($event);
$this->
assertThemes($expectedThemes,
$builder);
$builder =
new ThemeNamespaceHierarchyBuilder(new TestInheritanceBuilder(),
$themeLoader);
$builder->
requestEvent(new ExceptionEvent($this->
createMock(HttpKernelInterface::
class),
$request, HttpKernelInterface::MAIN_REQUEST,
new \
RuntimeException()));
$this->
assertThemes([],
$builder);
} public function testRequestEventWithExceptionEvent(): void
{ $request = Request::
createFromGlobals();
$request->attributes->
set(SalesChannelRequest::ATTRIBUTE_THEME_NAME, 'TestTheme'
);
$this->builder->
requestEvent(new ExceptionEvent($this->
createMock(HttpKernelInterface::
class),
$request, HttpKernelInterface::MAIN_REQUEST,
new \
RuntimeException()));