public function testBuildForm()
 {
     $builder = $this->getMockBuilder('Symfony\\Component\\Form\\FormBuilder')->disableOriginalConstructor()->getMock();
     $builder->expects($this->exactly(4))->method('add');
     $builder->expects($this->once())->method('addEventSubscriber')->with($this->isInstanceOf('Oro\\Bundle\\EmailBundle\\Form\\EventListener\\BuildTemplateFormSubscriber'));
     $this->type->buildForm($builder, array());
 }
 /**
  * {@inheritdoc}
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->addEventSubscriber(new PatchSubscriber());
 }