public function testBuildForm() { $builder = $this->getMock('Symfony\\Component\\Form\\Test\\FormBuilderInterface'); $builder->expects($this->once())->method('addEventSubscriber')->with($this->isInstanceOf('Oro\\Bundle\\FormBundle\\Form\\EventListener\\CollectionTypeSubscriber')); $options = array(); $this->type->buildForm($builder, $options); }