1010use Mopa \Bundle \BootstrapBundle \Form \Extension \WidgetFormTypeExtension ;
1111use Mopa \Bundle \BootstrapBundle \Form \Extension \WidgetCollectionFormTypeExtension ;
1212use Mopa \Bundle \BootstrapBundle \Form \Extension \IconButtonExtension ;
13+ use Mopa \Bundle \BootstrapBundle \Form \Type \TabType ;
1314use Mopa \Bundle \BootstrapBundle \Twig \MopaBootstrapInitializrTwigExtension ;
1415use Mopa \Bundle \BootstrapBundle \Twig \MopaBootstrapTwigExtension ;
1516use Mopa \Bundle \BootstrapBundle \Tests \FileSystemLoader ;
@@ -32,6 +33,7 @@ abstract class AbstractDivLayoutTest extends FormIntegrationTestCase
3233 'form ' => 'Symfony\Component\Form\Extension\Core\Type\FormType ' ,
3334 'text ' => 'Symfony\Component\Form\Extension\Core\Type\TextType ' ,
3435 'email ' => 'Symfony\Component\Form\Extension\Core\Type\EmailType ' ,
36+ 'tab ' => 'Mopa\Bundle\BootstrapBundle\Form\Type\TabType ' ,
3537 );
3638
3739 /**
@@ -88,19 +90,20 @@ protected function setUp()
8890 */
8991 protected function getExtensions ()
9092 {
91- return array (new PreloadedExtension (array (), array (
93+ return array (new PreloadedExtension (array (
94+ 'tab ' => new TabType (),
95+ ), array (
9296 $ this ->getFormType ('form ' ) => array (
9397 $ this ->getHelpFormTypeExtension (),
9498 $ this ->getWidgetFormTypeExtension (),
9599 $ this ->getWidgetCollectionFormTypeExtension (),
96100 $ this ->getLegendFormTypeExtension (),
97101 $ this ->getErrorTypeFormTypeExtension (),
98102 $ this ->getIconButtonExtension (),
103+ $ this ->getTabbedFormTypeExtension (),
99104 ),
100105 $ this ->getFormType ('text ' ) => array (
101106 ),
102- $ this ->getFormType ('tab ' ) => array (
103- ),
104107 )));
105108 }
106109
0 commit comments