protected function _construct() { parent::_construct(); //Only in case that the form is loaded in the backend, use a special template if (false === Mage::getModel("ops/config")->isFrontendEnvironment()) { $this->setTemplate(self::BACKEND_TEMPLATE); } }
/** * Init OPS payment form * */ protected function _construct() { parent::_construct(); $this->setTemplate(self::FRONTEND_TEMPLATE); }
protected function _construct() { parent::_construct(); $this->setTemplate('ops/form/alias.phtml'); }
public function testIsUserNotRegistering() { $dataHelperMock = $this->getHelperMock('ops/data', array('checkIfUserIsNotRegistering')); $dataHelperMock->expects($this->any())->method('checkIfUserIsNotRegistering')->will($this->returnValue(false)); $this->replaceByMock('helper', 'ops/data', $dataHelperMock); $block = new Netresearch_OPS_Block_Form(); $this->assertFalse($block->isUserNotRegistering()); }