/**
  * @covers Braincrafted\Bundle\BootstrapBundle\Form\Extension\TypeSetterExtension::buildView()
  */
 public function testBuildView()
 {
     $view = m::mock('Symfony\\Component\\Form\\FormView');
     $type = m::mock('Symfony\\Component\\Form\\ResolvedFormTypeInterface');
     $type->shouldReceive('getName')->andReturn('type');
     $config = m::mock('Symfony\\Component\\Form\\FormConfigInterface');
     $config->shouldReceive('getType')->andReturn($type);
     $form = m::mock('Symfony\\Component\\Form\\FormInterface');
     $form->shouldReceive('getConfig')->andReturn($config);
     $this->extension->buildView($view, $form, array());
 }
 /**
  * @covers Braincrafted\Bundle\BootstrapBundle\Form\Extension\TypeSetterExtension::buildView()
  */
 public function testBuildView()
 {
     $view = m::mock('Symfony\\Component\\Form\\FormView');
     $type = m::mock('Symfony\\Component\\Form\\ResolvedFormTypeInterface');
     if (LegacyFormHelper::isLegacy()) {
         $type->shouldReceive('getName')->andReturn('form');
     } else {
         $type->shouldReceive('getBlockPrefix')->andReturn(LegacyFormHelper::getType('form'));
     }
     $config = m::mock('Symfony\\Component\\Form\\FormConfigInterface');
     $config->shouldReceive('getType')->andReturn($type);
     $form = m::mock('Symfony\\Component\\Form\\FormInterface');
     $form->shouldReceive('getConfig')->andReturn($config);
     $this->extension->buildView($view, $form, array());
 }