function _initWysiwyg() { $this->_helper = new lmbWysiwygConfigurationHelper(); $this->_helper->setProfileName($this->getAttribute('profile_name')); if (!$this->getAttribute('rows')) { $this->setAttribute('rows', $this->_helper->getOption('rows')); } if (!$this->getAttribute('cols')) { $this->setAttribute('cols', $this->_helper->getOption('cols')); } if (!$this->getAttribute('width')) { $this->setAttribute('width', $this->_helper->getOption('width')); } if (!$this->getAttribute('height')) { $this->setAttribute('height', $this->_helper->getOption('height')); } }
function testGetOption_CustomProfile() { $this->_helper->setProfileName('bar_profile'); $this->assertEqual($this->_helper->getOption('baz'), 111); }