Skip to content

Commit 6d607d2

Browse files
committed
MAGETWO-51068: Admin User session expired despite Session Lifetime
- CR fix
1 parent 750b9b2 commit 6d607d2

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

lib/internal/Magento/Framework/Session/SaveHandler/Redis/Config.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
use Magento\Framework\App\Config\ScopeConfigInterface;
1111
use Magento\Store\Model\ScopeInterface as StoreScopeInterface;
1212

13+
/**
14+
* Redis session save handler
15+
*/
1316
class Config implements \Cm\RedisSession\Handler\ConfigInterface
1417
{
1518
/**

lib/internal/Magento/Framework/Session/Test/Unit/SaveHandler/Redis/ConfigTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ class ConfigTest extends \PHPUnit_Framework_TestCase
3131

3232
public function setUp()
3333
{
34-
$this->deploymentConfigMock = $this->getMock('Magento\Framework\App\DeploymentConfig', [], [], '', false);
35-
$this->appStateMock = $this->getMock('Magento\Framework\App\State', [], [], '', false);
36-
$this->scopeConfigMock = $this->getMock('Magento\Framework\App\Config', [], [], '', false);
34+
$this->deploymentConfigMock = $this->getMock(\Magento\Framework\App\DeploymentConfig::class, [], [], '', false);
35+
$this->appStateMock = $this->getMock(\Magento\Framework\App\State::class, [], [], '', false);
36+
$this->scopeConfigMock = $this->getMock(\Magento\Framework\App\Config::class, [], [], '', false);
3737

3838
$objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
3939
$this->config = $objectManager->getObject(
40-
'Magento\Framework\Session\SaveHandler\Redis\Config',
40+
\Magento\Framework\Session\SaveHandler\Redis\Config::class,
4141
[
4242
'deploymentConfig' => $this->deploymentConfigMock,
4343
'appState' => $this->appStateMock,

0 commit comments

Comments
 (0)