File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
lib/internal/Magento/Framework/Session
Test/Unit/SaveHandler/Redis Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -101,19 +101,19 @@ class Config implements \Cm\RedisSession\Handler\ConfigInterface
101
101
const PARAM_BREAK_AFTER = 'session/redis/break_after ' ;
102
102
103
103
/**
104
- * Cookie Lifetime config path
104
+ * Cookie lifetime config path
105
105
*/
106
106
const XML_PATH_COOKIE_LIFETIME = 'web/cookie/cookie_lifetime ' ;
107
107
108
108
/**
109
- * Admin Session Lifetime config path
109
+ * Admin session lifetime config path
110
110
*/
111
111
const XML_PATH_ADMIN_SESSION_LIFETIME = 'admin/security/session_lifetime ' ;
112
112
113
113
/**
114
- * Max Admin Session Lifetime
114
+ * Max admin session lifetime
115
115
*/
116
- const ADMIN_SESSION_MAX_LIFETIME = 31536000 ; //One year
116
+ const ADMIN_SESSION_MAX_LIFETIME = 31536000 ;
117
117
118
118
/**
119
119
* Deployment config
Original file line number Diff line number Diff line change @@ -12,22 +12,22 @@ class ConfigTest extends \PHPUnit_Framework_TestCase
12
12
/**
13
13
* @var \Magento\Framework\App\DeploymentConfig|\PHPUnit_Framework_MockObject_MockObject
14
14
*/
15
- protected $ deploymentConfigMock ;
15
+ private $ deploymentConfigMock ;
16
16
17
17
/**
18
18
* @var \Magento\Framework\App\State|\PHPUnit_Framework_MockObject_MockObject
19
19
*/
20
- protected $ appStateMock ;
20
+ private $ appStateMock ;
21
21
22
22
/**
23
23
* @var \Magento\Framework\App\Config|\PHPUnit_Framework_MockObject_MockObject
24
24
*/
25
- protected $ scopeConfigMock ;
25
+ private $ scopeConfigMock ;
26
26
27
27
/**
28
28
* @var \Magento\Framework\Session\SaveHandler\Redis\Config
29
29
*/
30
- protected $ config ;
30
+ private $ config ;
31
31
32
32
public function setUp ()
33
33
{
@@ -218,8 +218,8 @@ public function testBreakAfter()
218
218
219
219
public function testGetLifetimeAdmin ()
220
220
{
221
- $ expectedLifetime = 12345 ;
222
221
$ areaCode = 'adminhtml ' ;
222
+ $ expectedLifetime = 123 ;
223
223
$ this ->appStateMock ->expects ($ this ->once ())
224
224
->method ('getAreaCode ' )
225
225
->willReturn ($ areaCode );
@@ -232,8 +232,8 @@ public function testGetLifetimeAdmin()
232
232
233
233
public function testGetLifetimeFrontend ()
234
234
{
235
- $ expectedLifetime = 3010 ;
236
235
$ areaCode = 'frontend ' ;
236
+ $ expectedLifetime = 234 ;
237
237
$ this ->appStateMock ->expects ($ this ->once ())
238
238
->method ('getAreaCode ' )
239
239
->willReturn ($ areaCode );
You can’t perform that action at this time.
0 commit comments