8000 ensure session storages are opened before destroying them · symfony/symfony@dbf7867 · GitHub
[go: up one dir, main page]

Skip to content

Commit dbf7867

Browse files
committed
ensure session storages are opened before destroying them
1 parent a667f57 commit dbf7867

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/AbstractRedisSessionHandlerTestCase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public function testUseSessionGcMaxLifetimeAsTimeToLive()
8989

9090
public function testDestroySession()
9191
{
92+
$this->storage->open('test', 'test');
9293
$this->redisClient->set(self::PREFIX.'id', 'foo');
9394

9495
$this->assertTrue((bool) $this->redisClient->exists(self::PREFIX.'id'));

src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ public function testReplaceSessionData()
163163

164164
public function testDestroy()
165165
{
166+
$this->storage->open('test', 'test');
167+
166168
$this->storage->write('foo', 'bar');
167169
$this->storage->write('baz', 'qux');
168170

0 commit comments

Comments
 (0)
0