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