addHttpCacheToCoreRoutes example

$this->createMock(CartService::class),
            1,
            true,
            new MaintenanceModeResolver(new RequestStack()new CoreMaintenanceModeResolver(new EventDispatcher())),
            false,
            null,
            null
        );

        $request = new Request();
        $request->attributes->set('_route', 'api.acl.privileges.get');
        $subscriber->addHttpCacheToCoreRoutes(new RequestEvent($this->createMock(KernelInterface::class)$request, HttpKernelInterface::MAIN_REQUEST));

        static::assertTrue($request->attributes->has(PlatformRequest::ATTRIBUTE_HTTP_CACHE));
    }

    /** * @dataProvider providerCurrencyChange */
    public function testCurrencyChange(?string $currencyId): void
    {
        $subscriber = new CacheResponseSubscriber(
            $this->createMock(CartService::class),
            
Home | Imprint | This part of the site doesn't use cookies.