File tree 1 file changed +2
-1
lines changed
src/Symfony/Component/HttpKernel/Tests/EventListener
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 14
14
use PHPUnit \Framework \TestCase ;
15
15
use Psr \Log \LoggerInterface ;
16
16
use Symfony \Component \DependencyInjection \Container ;
17
+ use Symfony \Component \DependencyInjection \ServiceLocator ;
17
18
use Symfony \Component \HttpFoundation \Cookie ;
18
19
use Symfony \Component \HttpFoundation \Request ;
19
20
use Symfony \Component \HttpFoundation \RequestStack ;
@@ -323,7 +324,7 @@ public function testUninitializedSession()
323
324
$ this ->assertFalse ($ response ->headers ->hasCacheControlDirective ('private ' ));
324
325
$ this ->assertFalse ($ response ->headers ->hasCacheControlDirective ('must-revalidate ' ));
325
326
$ 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 ));
327
328
}
328
329
329
330
public function testUninitializedSessionWithoutInitializedSession ()
You can’t perform that action at this time.
0 commit comments