public function testGetSubscriptionObject() { $object = $this->_block->getSubscriptionObject(); $this->assertInstanceOf('Mage_Newsletter_Model_Subscriber', $object); $object2 = $this->_block->getSubscriptionObject(); $this->assertSame($object, $object2); }
/** * Add paypalauth block to the customer dashboard * * @return string */ protected function _toHtml() { $isExtensionEnabled = Mage::getStoreConfigFlag('opc/paypallogin/status'); $html = $this->getChildHtml('paypalauth_dashboard'); if (!$isExtensionEnabled) { return parent::_toHtml(); } $html .= parent::_toHtml(); return $html; }
public function _toHtml() { $this->setTemplate('advancednewsletter/customer/info.phtml'); return parent::_toHtml(); }