$subscriber =
new CacheResponseSubscriber( $this->
createMock(CartService::
class),
100,
true,
new MaintenanceModeResolver(new RequestStack(),
new CoreMaintenanceModeResolver(new EventDispatcher())),
$reverseProxyEnabled,
null,
null
);
$subscriber->
updateCacheControlForBrowser(new BeforeSendResponseEvent(new Request(),
$response));
static::
assertSame($afterHeader,
$response->headers->
get('cache-control'
));
if (!
$reverseProxyEnabled) { static::
assertFalse($response->headers->
has(CacheResponseSubscriber::INVALIDATION_STATES_HEADER
));
} } /**
* @return array<string, array<int, bool|string|null>>
*/