/** * @magentoDataFixture Mage/Customer/_files/customer.php */ public function testAddAuthLinkLogOut() { Mage::getSingleton('Mage_Customer_Model_Session')->login('*****@*****.**', 'password'); $this->_block->addAuthLink('links', 1); $links = $this->_links->getLinks(); $this->assertEquals('Log Out', $links[1]->getLabel()); }
protected function _renderBlock() { $template = $this->_placeholder->getAttribute('template'); $links = new Mage_Page_Block_Template_Links(); $links->setTemplate($template); $links->addLink(Mage::helper('awmobile')->__('Search'), '#', Mage::helper('awmobile')->__('Search'), false, array(), 45, '', 'class="button grey search" onclick="showSearchForm(1); return false;"'); $links->addLink($this->getCartButtonText(), '#', $this->getCartButtonText(), false, array(), 50, 'id="gotocart-button-container"', 'class="button red right" onclick="goToCart(); return false;"'); $links->setLayout(Mage::app()->getLayout()); return $links->toHtml(); }
public function addLinkBlock($blockName) { return parent::addLinkBlock($blockName); }
public function __construct() { parent::__construct(); $this->_facebook = new Facebook_Facebook(array('appId' => Mage::helper('facebooklogin')->getAppID(), 'secret' => Mage::helper('facebooklogin')->getAppSecret())); }