Skip to content

Commit 624f91d

Browse files
committed
MAGETWO-65236: Expiration date of PHPSESSID cookie is not updated
1 parent 58cb13c commit 624f91d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/internal/Magento/Framework/Session/Test/Unit/SessionManagerTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,9 @@ class SessionManagerTest extends \PHPUnit_Framework_TestCase
4848

4949
protected function setUp()
5050
{
51-
global $mockPHPFunctions;
52-
$mockPHPFunctions = true;
5351
require_once __DIR__ . '/_files/mock_ini_set.php';
5452
require_once __DIR__ . '/_files/mock_session_regenerate_id.php';
5553

56-
$mockPHPFunctions = true;
5754
$this->mockSessionConfig = $this->getMockBuilder(\Magento\Framework\Session\Config\ConfigInterface::class)
5855
->disableOriginalConstructor()
5956
->getMock();
@@ -78,6 +75,7 @@ protected function setUp()
7875
public function testSessionManagerConstructor()
7976
{
8077
global $mockPHPFunctions;
78+
$mockPHPFunctions = true;
8179
self::$isIniSetInvoked = false;
8280
$this->objectManager->getObject(\Magento\Framework\Session\SessionManager::class);
8381
$this->assertTrue(SessionManagerTest::$isIniSetInvoked);

0 commit comments

Comments
 (0)