public function testGetCategoryIdUrl() { $this->assertStringEndsWith('catalog/category/view/', $this->_model->getCategoryIdUrl()); $this->_model->setUrlKey('test_key'); $this->assertStringEndsWith('catalog/category/view/s/test_key/', $this->_model->getCategoryIdUrl()); }
/** * {@inheritdoc} */ public function getCategoryIdUrl() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getCategoryIdUrl'); if (!$pluginInfo) { return parent::getCategoryIdUrl(); } else { return $this->___callPlugins('getCategoryIdUrl', func_get_args(), $pluginInfo); } }