File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1414use Symfony \Bundle \FrameworkBundle \Controller \ControllerTrait ;
1515use Symfony \Bundle \FrameworkBundle \Tests \TestCase ;
1616use Symfony \Component \DependencyInjection \Container ;
17+ use Symfony \Component \Form \Form ;
1718use Symfony \Component \HttpFoundation \BinaryFileResponse ;
1819use Symfony \Component \HttpFoundation \File \File ;
1920use Symfony \Component \HttpFoundation \JsonResponse ;
@@ -486,7 +487,8 @@ public function testCreateNotFoundException()
486487
487488 public function testCreateForm ()
488489 {
489- $ form = $ this ->getMockBuilder ('Symfony\Component\Form\FormInterface ' )->getMock ();
490+ $ config = $ this ->getMockBuilder ('Symfony\Component\Form\FormConfigInterface ' )->getMock ();
491+ $ form = new Form ($ config );
490492
491493 $ formFactory = $ this ->getMockBuilder ('Symfony\Component\Form\FormFactoryInterface ' )->getMock ();
492494 $ formFactory ->expects ($ this ->once ())->method ('create ' )->willReturn ($ form );
You can’t perform that action at this time.
0 commit comments