ThemeNamespaceHierarchyBuilder example


class ThemeNamespaceHierarchyBuilderTest extends TestCase
{
    private ThemeNamespaceHierarchyBuilder $builder;

    protected function setUp(): void
    {
        $themeLoader = $this->createMock(SalesChannelThemeLoader::class);
        $this->builder = new ThemeNamespaceHierarchyBuilder(new TestInheritanceBuilder()$themeLoader);
    }

    public function testThemeNamespaceHierarchyBuilderSubscribesToRequestAndExceptionEvents(): void
    {
        $events = $this->builder->getSubscribedEvents();

        static::assertEquals([
            KernelEvents::REQUEST,
            KernelEvents::EXCEPTION,
            DocumentTemplateRendererParameterEvent::class,
        ]array_keys($events));
    }
Home | Imprint | This part of the site doesn't use cookies.