@@ -74,7 +74,7 @@ public function testResponseIsPrivateIfSessionStarted()
74
74
$ this ->assertTrue ($ response ->headers ->hasCacheControlDirective ('private ' ));
75
75
$ this ->assertTrue ($ response ->headers ->hasCacheControlDirective ('must-revalidate ' ));
76
76
$ this ->assertSame ('0 ' , $ response ->headers ->getCacheControlDirective ('max-age ' ));
77
- $ this ->assertFalse ($ response ->headers ->has (AbstractSessionListener::SESSION_NO_AUTO_CACHE_CONTROL ));
77
+ $ this ->assertFalse ($ response ->headers ->has (AbstractSessionListener::NO_AUTO_CACHE_CONTROL_HEADER ));
78
78
}
79
79
80
80
public function testResponseIsStillPublicIfSessionStartedAndHeaderPresent ()
@@ -91,14 +91,14 @@ public function testResponseIsStillPublicIfSessionStartedAndHeaderPresent()
91
91
92
92
$ response = new Response ();
93
93
$ response ->setSharedMaxAge (60 );
94
- $ response ->headers ->set (AbstractSessionListener::SESSION_NO_AUTO_CACHE_CONTROL , 'true ' );
94
+ $ response ->headers ->set (AbstractSessionListener::NO_AUTO_CACHE_CONTROL_HEADER , 'true ' );
95
95
$ listener ->onKernelResponse (new FilterResponseEvent ($ kernel , new Request (), HttpKernelInterface::MASTER_REQUEST , $ response ));
96
96
97
97
$ this ->assertTrue ($ response ->headers ->hasCacheControlDirective ('public ' ));
98
98
$ this ->assertFalse ($ response ->headers ->hasCacheControlDirective ('private ' ));
99
99
$ this ->assertFalse ($ response ->headers ->hasCacheControlDirective ('must-revalidate ' ));
100
100
$ this ->assertSame ('60 ' , $ response ->headers ->getCacheControlDirective ('s-maxage ' ));
101
- $ this ->assertFalse ($ response ->headers ->has (AbstractSessionListener::SESSION_NO_AUTO_CACHE_CONTROL ));
101
+ $ this ->assertFalse ($ response ->headers ->has (AbstractSessionListener::NO_AUTO_CACHE_CONTROL_HEADER ));
102
102
}
103
103
104
104
public function testUninitilizedSession ()
0 commit comments