/**
  * @magentoDataFixture Magento/CatalogUrlRewrite/_files/categories.php
  * @magentoAppIsolation enabled
  */
 public function testGetUrlPath()
 {
     $this->assertNull($this->_model->getUrlPath());
     $this->_model->load(4);
     $this->assertEquals('category-1/category-1-1', $this->_model->getUrlPath());
 }
Example #2
0
 /**
  * Get category url path
  *
  * @param Category $category
  * @return string
  */
 public function getCategoryUrlKeyPath(Category $category)
 {
     return $category->getUrlPath();
 }