/** * Retrieve clear url for category as parrent * * @param string $url * @param bool $slash * @param int $storeId * * @return string */ public function getCategoryUrlPath($urlPath, $slash = false, $storeId = null) { if (Mage::getStoreConfig('activo_categoryurlseo/global/enabled') == 0) { return parent::getCategoryUrlPath($urlPath, $slash, $storeId); } else { return Mage::getStoreConfig('activo_categoryurlseo/global/toplevel'); } }
/** * @magentoConfigFixture current_store catalog/seo/category_canonical_tag 1 */ public function testCanUseCanonicalTag() { $this->assertEquals(1, $this->_helper->canUseCanonicalTag()); }