コード例 #1
0
 public function testSetLifetimePath()
 {
     $getValueReturnMap = [['test_web/test_cookie/test_cookie_lifetime', 'store', null, 7200], ['web/cookie/cookie_path', 'store', null, '']];
     $this->_configMock->method('getValue')->will($this->returnValueMap($getValueReturnMap));
     $config = new \Magento\Framework\Session\Config($this->_configMock, $this->_stringHelperMock, $this->_requestMock, $this->_filesystem, \Magento\Store\Model\ScopeInterface::SCOPE_STORE, \Magento\Framework\Session\SaveHandlerInterface::DEFAULT_HANDLER, __DIR__, null, 'test_web/test_cookie/test_cookie_lifetime');
     $this->assertEquals(7200, $config->getCookieLifetime());
 }