public function getClearListUrl() { if (Mage::helper('flycart')->isActivated() && Mage::app()->getFrontController()->getRequest()->getParam('flycart_compare_add') == 1) { $params = array(); return $this->_getUrl('catalog/product_compare/clear', $params); } else { return parent::getClearListUrl(); } }
public function testGetClearListUrl() { $this->assertContains('/catalog/product_compare/clear/', $this->_helper->getClearListUrl()); }