コード例 #1
0
 public function testSetDefaultOptions()
 {
     $resolver = $this->getMock('Symfony\\Component\\OptionsResolver\\OptionsResolverInterface');
     $resolver->expects($this->once())->method('setDefaults')->with(['tooltip' => false, 'configs' => ['placeholder' => 'oro.email.contexts.placeholder', 'allowClear' => true, 'multiple' => true, 'route_name' => 'oro_api_get_search_autocomplete', 'separator' => ';', 'containerCssClass' => 'taggable-email', 'minimumInputLength' => 1]]);
     $type = new ContextsSelectType($this->em);
     $type->setDefaultOptions($resolver);
 }