Exemplo n.º 1
0
 /**
  * @magentoAppIsolation enabled
  */
 public function testDefaultConfiguration()
 {
     $this->assertEquals(\Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get('Magento\\Framework\\App\\Filesystem')->getPath('session'), $this->_model->getSavePath());
     $this->assertEquals(\Magento\Framework\Session\Config::COOKIE_LIFETIME_DEFAULT, $this->_model->getCookieLifetime());
     $this->assertEquals($this->_cacheLimiter, $this->_model->getCacheLimiter());
     $this->assertEquals('/', $this->_model->getCookiePath());
     $this->assertEquals('localhost', $this->_model->getCookieDomain());
     $this->assertEquals(false, $this->_model->getCookieSecure());
     $this->assertEquals(true, $this->_model->getCookieHttpOnly());
     $this->assertEquals($this->_model->getSavePath(), $this->_model->getOption('save_path'));
 }
 public function testCookieSecureIsMutable()
 {
     $this->getModel($this->validatorMock);
     $value = ini_get('session.cookie_secure') ? false : true;
     $this->config->setCookieSecure($value);
     $this->assertEquals($value, $this->config->getCookieSecure());
 }
Exemplo n.º 3
0
 public function testSetCookieSecureInOptions()
 {
     $this->_model->setCookieSecure(true);
     $this->assertTrue($this->_model->getCookieSecure());
 }