예제 #1
0
파일: DataTest.php 프로젝트: relue/magento2
 public function testGetOldValue()
 {
     $this->_model->setPath(self::SAMPLE_CONFIG_PATH);
     $this->assertEquals(self::SAMPLE_VALUE, $this->_model->getOldValue());
     $this->_model->setWebsiteCode('base');
     $this->assertEquals(self::SAMPLE_VALUE, $this->_model->getOldValue());
     $this->_model->setStoreCode('default');
     $this->assertEquals(self::SAMPLE_VALUE, $this->_model->getOldValue());
 }
예제 #2
0
 /**
  * Get & decrypt old value from configuration
  *
  * @return string
  */
 public function getOldValue()
 {
     return Mage::helper('core')->decrypt(parent::getOldValue());
 }
예제 #3
0
 /**
  * Get & decrypt old value from configuration
  *
  * @return string
  */
 public function getOldValue()
 {
     return Mage::helper('Mage_Core_Helper_Data')->decrypt(parent::getOldValue());
 }