示例#1
0
 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);
     }
 }
示例#2
0
 /**
  * Init OPS payment form
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate(self::FRONTEND_TEMPLATE);
 }
示例#3
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('ops/form/alias.phtml');
 }
示例#4
0
 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());
 }