コード例 #1
0
 /**
  * @covers Robo47_View_Helper_Ckeditor::__construct
  */
 public function testConstructorWithDefaultOptionsAndOptions()
 {
     $options = array('initMode' => 'jquery', 'placement' => 'PREPEND', 'editorOptions' => 'FOO');
     $options2 = array('initMode' => 'script', 'placement' => 'append', 'editorOptions' => 'BLUB');
     Robo47_View_Helper_Ckeditor::setDefaultOptions($options2);
     $this->_helper = new Robo47_View_Helper_Ckeditor($options);
     $this->assertEquals('jquery', $this->_helper->getInitMode());
     $this->assertEquals('prepend', $this->_helper->getPlacement());
     $this->assertEquals('FOO', $this->_helper->getEditorOptions());
 }