예제 #1
0
 /**
  * Retrieve logo image URL
  *
  * @return string
  */
 protected function _getLogoUrl()
 {
     $folderName = Mage_Backend_Model_Config_Backend_Image_Logo::UPLOAD_DIR;
     $storeLogoPath = $this->_storeConfig->getConfig('design/header/logo_src');
     $logoUrl = $this->_urlBuilder->getBaseUrl(array('_type' => Mage_Core_Model_Store::URL_TYPE_MEDIA)) . $folderName . '/' . $storeLogoPath;
     $absolutePath = $this->_configOptions->getDir('media') . DIRECTORY_SEPARATOR . $folderName . DIRECTORY_SEPARATOR . $storeLogoPath;
     if (!is_null($storeLogoPath) && $this->_isFile($absolutePath)) {
         $url = $logoUrl;
     } else {
         $url = $this->getViewFileUrl('images::logo.gif');
     }
     return $url;
 }
예제 #2
0
 /**
  * @expectedException Mage_Core_Exception
  */
 public function testGetDirException()
 {
     $this->_model->getDir('invalid');
 }