Exemple #1
0
 public function testConfiguredDisable()
 {
     $this->ckEditorType->isEnable(false);
     $options = array('config' => array('toolbar' => array('foo' => 'bar'), 'uiColor' => '#ffffff'), 'plugins' => array('wordcount' => array('path' => '/my/path', 'filename' => 'plugin.js')));
     $form = $this->factory->create('ckeditor', null, $options);
     $view = $form->createView();
     $this->assertArrayHasKey('enable', $view->vars);
     $this->assertFalse($view->vars['enable']);
     $this->assertArrayNotHasKey('config', $view->vars);
     $this->assertArrayNotHasKey('plugins', $view->vars);
 }