Skip to content

Commit a239935

Browse files
committed
MAGETWO-65236: Expiration date of PHPSESSID cookie is not updated
1 parent d3eebf9 commit a239935

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66
// @codingStandardsIgnoreStart
7-
namespace {
8-
$mockPHPFunctions = true;
9-
}
10-
117
namespace Magento\Framework\Session\Test\Unit {
128
// @codingStandardsIgnoreEnd
139

@@ -53,6 +49,7 @@ class SessionManagerTest extends \PHPUnit_Framework_TestCase
5349
protected function setUp()
5450
{
5551
global $mockPHPFunctions;
52+
$mockPHPFunctions = true;
5653
require_once __DIR__ . '/_files/mock_ini_set.php';
5754
require_once __DIR__ . '/_files/mock_session_regenerate_id.php';
5855

@@ -84,5 +81,11 @@ public function testSessionManagerConstructor()
8481
$this->objectManager->getObject(\Magento\Framework\Session\SessionManager::class);
8582
$this->assertTrue(SessionManagerTest::$isIniSetInvoked);
8683
}
84+
85+
protected function tearDown()
86+
{
87+
global $mockPHPFunctions;
88+
$mockPHPFunctions = false;
89+
}
8790
}
8891
}

0 commit comments

Comments
 (0)