Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d3d2aae

Browse files
fix bug in SessionListenerTest
1 parent 87d87e7 commit d3d2aae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/HttpKernel/Tests/EventListener/SessionListenerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use PHPUnit\Framework\TestCase;
1515
use Psr\Log\LoggerInterface;
1616
use Symfony\Component\DependencyInjection\Container;
17+
use Symfony\Component\DependencyInjection\ServiceLocator;
1718
use Symfony\Component\HttpFoundation\Cookie;
1819
use Symfony\Component\HttpFoundation\Request;
1920
use 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()

0 commit comments

Comments
 (0)