Example #1
0
 /**
  * @covers Mage_Backend_Model_Url::getSecure
  */
 public function testIsSecure()
 {
     Mage::app()->getStore()->setConfig('web/secure/use_in_adminhtml', true);
     $this->assertTrue($this->_model->isSecure());
     Mage::app()->getStore()->setConfig('web/secure/use_in_adminhtml', false);
     $this->assertFalse($this->_model->isSecure());
     $this->_model->setData('secure_is_forced', true);
     $this->_model->setData('secure', true);
     $this->assertTrue($this->_model->isSecure());
     $this->_model->setData('secure', false);
     $this->assertFalse($this->_model->isSecure());
 }