protected function setUp()
 {
     parent::setUp();
     $validator = $this->getMock('Symfony\\Component\\Validator\\ValidatorInterface');
     $validator->expects($this->any())->method('validate')->willReturn([]);
     $this->factory = Forms::createFormFactoryBuilder()->addExtensions($this->getExtensions())->addTypeExtension(new FormTypeValidatorExtension($validator))->getFormFactory();
 }
 protected function setUp()
 {
     parent::setUp();
     $this->om = $om = $this->client->getContainer()->get('claroline.persistence.object_manager');
     $validator = $this->getMock('Symfony\\Component\\Validator\\ValidatorInterface');
     $validator->expects($this->any())->method('validate')->willReturn([]);
     $this->factory = Forms::createFormFactoryBuilder()->addExtensions($this->getExtensions())->addTypeExtension(new FormTypeValidatorExtension($validator))->getFormFactory();
 }