public function testTemplatesWithConfiguredAndExplicitTemplates()
 {
     $configuredTemplates = array('default' => array('imagesPath' => '/my/path', 'templates' => array(array('title' => 'My Template', 'html' => '<h1>Template</h1><p>Type your text here.</p>'))));
     $explicitTemplates = array('extra' => array('templates' => array(array('title' => 'My Extra Template', 'html' => '<h2>Template</h2><p>Type your text here.</p>'))));
     $this->templateManagerMock->expects($this->once())->method('setTemplates')->with($this->equalTo($explicitTemplates));
     $this->templateManagerMock->expects($this->once())->method('getTemplates')->will($this->returnValue(array_merge($explicitTemplates, $configuredTemplates)));
     $form = $this->factory->create('ckeditor', null, array('templates' => $explicitTemplates));
     $view = $form->createView();
     $this->assertSame(array_merge($explicitTemplates, $configuredTemplates), $view->vars['templates']);
 }