public function testSetDefaultOptions()
 {
     $resolver = $this->getMock('Symfony\\Component\\OptionsResolver\\OptionsResolverInterface');
     $resolver->expects($this->once())->method('setDefaults')->with($this->callback(function (array $options) {
         $this->assertArrayHasKey('autocomplete_alias', $options);
         $this->assertArrayHasKey('create_form_route', $options);
         $this->assertArrayHasKey('configs', $options);
         $this->assertEquals('orob2b_product', $options['autocomplete_alias']);
         $this->assertEquals('orob2b_product_create', $options['create_form_route']);
         $this->assertEquals(['placeholder' => 'orob2b.product.form.choose'], $options['configs']);
         return true;
     }));
     $this->type->setDefaultOptions($resolver);
 }
 public function testConfigureOptions()
 {
     /** @var \PHPUnit_Framework_MockObject_MockObject|OptionsResolver $resolver */
     $resolver = $this->getMock('Symfony\\Component\\OptionsResolver\\OptionsResolver');
     $resolver->expects($this->once())->method('setDefaults')->with($this->callback(function (array $options) {
         $this->assertArrayHasKey('autocomplete_alias', $options);
         $this->assertArrayHasKey('create_form_route', $options);
         $this->assertArrayHasKey('configs', $options);
         $this->assertEquals('orob2b_product', $options['autocomplete_alias']);
         $this->assertEquals('orob2b_product_create', $options['create_form_route']);
         $this->assertEquals(['placeholder' => 'orob2b.product.form.choose', 'result_template_twig' => 'OroB2BProductBundle:Product:Autocomplete/result.html.twig', 'selection_template_twig' => 'OroB2BProductBundle:Product:Autocomplete/selection.html.twig'], $options['configs']);
         return true;
     }));
     $this->type->configureOptions($resolver);
 }