public function getResultUrl($query = null)
 {
     if (!Mage::helper('magenotification')->checkLicenseKey('Instantsearch')) {
         return parent::getResultUrl($query);
     }
     if (Mage::getStoreConfig(self::OVERWRITE_QUICK_SEARCH)) {
         return $this->_getUrl('instantsearch');
     } else {
         return $this->_getUrl('catalogsearch/result', array('_query' => array(self::QUERY_VAR_NAME => $query), '_secure' => Mage::app()->getFrontController()->getRequest()->isSecure()));
     }
 }
Exemple #2
0
 public function testGetResultUrl()
 {
     $this->assertStringEndsWith('/catalogsearch/result/', $this->_helper->getResultUrl());
     $query = uniqid();
     $this->assertStringEndsWith("/catalogsearch/result/?q={$query}", $this->_helper->getResultUrl($query));
 }