public function testGetCategoryUrl() { $url = 'http://example.com/'; $category = new Mage_Catalog_Model_Category(array('url' => $url)); $this->assertEquals($url, $this->_helper->getCategoryUrl($category)); $category = new Varien_Object(array('url' => $url)); $this->assertEquals($url, $this->_helper->getCategoryUrl($category)); }