/**
* @dataProvider onRenderingDocumentProvider
*
* @param array<string, mixed> $parameters
* @param array<string, bool> $expectedThemes
*/
public function testOnRenderingDocument(array
$parameters, array
$expectedThemes, ?string
$usingTheme): void
{ $request = Request::
createFromGlobals();
$event =
new DocumentTemplateRendererParameterEvent($parameters);
$themeLoader =
$this->
createMock(SalesChannelThemeLoader::
class);
$themeLoader->
method('load'
)->
willReturn([ 'themeName' =>
$usingTheme,
'parentThemeName' => null,
]);
$builder =
new ThemeNamespaceHierarchyBuilder(new TestInheritanceBuilder(),
$themeLoader);
$builder->
onDocumentRendering($event);