public function testGetTemplate() { $block = new Mage_Wishlist_Block_Customer_Wishlist_Item_Options(); $this->assertEmpty($block->getTemplate()); $product = new Varien_Object(array('type_id' => 'test')); $item = new Varien_Object(array('product' => $product)); $block->setItem($item); $this->assertNotEmpty($block->getTemplate()); $block->setTemplate('template'); $this->assertEquals('template', $block->getTemplate()); }
protected function _toHtml() { $html = parent::_toHtml(); $html = Mage::helper('aitcg')->removeSocialWidgetsFromHtml($html); return $html; }