File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/Symfony/Component/HttpKernel/Tests/EventListener Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1414use PHPUnit \Framework \TestCase ;
1515use Psr \Log \LoggerInterface ;
1616use Symfony \Component \DependencyInjection \Container ;
17+ use Symfony \Component \DependencyInjection \ServiceLocator ;
1718use Symfony \Component \HttpFoundation \Cookie ;
1819use Symfony \Component \HttpFoundation \Request ;
1920use Symfony \Component \HttpFoundation \RequestStack ;
@@ -323,7 +324,7 @@ public function testUninitializedSession()
323324 $ this ->assertFalse ($ response ->headers ->hasCacheControlDirective ('private ' ));
324325 $ this ->assertFalse ($ response ->headers ->hasCacheControlDirective ('must-revalidate ' ));
325326 $ this ->assertSame ('60 ' , $ response ->headers ->getCacheControlDirective ('s-maxage ' ));
326- $ this ->assertFalse ($ response ->headers ->has (AbstractSessionListener::NO_AUTO_CACHE_CONTROL_HEADER ));
327+ $ this ->assertTrue ($ response ->headers ->has (AbstractSessionListener::NO_AUTO_CACHE_CONTROL_HEADER ));
327328 }
328329
329330 public function testUninitializedSessionWithoutInitializedSession ()
You can’t perform that action at this time.
0 commit comments