public function testGetAndSetToolbar1() { $option = new WysiwygOption(); $this->assertEquals('toolbar', $option->getToolbar1('toolbar')); $option->setToolbar1('other toolbar'); $this->assertEquals('other toolbar', $option->getToolbar1()); }
public function getData(WysiwygOption $option) { $data = array('formats' => $this->getConfig('formats'), 'toolbar1' => $option->getToolbar1($this->getConfig('toolbar1')), 'toolbar2' => $option->getToolbar2($this->getConfig('toolbar2')), 'height' => $option->getHeight($this->getConfig('height')), 'style_formats' => $option->getFormats($this->getConfig('style_formats')), 'content_css' => $option->getContentCss($this->getConfig('content_css'))); return json_encode($data); }