File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 15
15
use Symfony \Bundle \FrameworkBundle \Tests \TestCase ;
16
16
use Symfony \Component \DependencyInjection \Container ;
17
17
use Symfony \Component \Form \Form ;
18
+ use Symfony \Component \Form \FormConfigInterface ;
18
19
use Symfony \Component \HttpFoundation \BinaryFileResponse ;
19
20
use Symfony \Component \HttpFoundation \File \File ;
20
21
use Symfony \Component \HttpFoundation \JsonResponse ;
@@ -487,8 +488,7 @@ public function testCreateNotFoundException()
487
488
488
489
public function testCreateForm ()
489
490
{
490
- $ config = $ this ->getMockBuilder ('Symfony\Component\Form\FormConfigInterface ' )->getMock ();
491
- $ form = new Form ($ config );
491
+ $ form = new Form ($ this ->getMockBuilder (FormConfigInterface::class)->getMock ());
492
492
493
493
$ formFactory = $ this ->getMockBuilder ('Symfony\Component\Form\FormFactoryInterface ' )->getMock ();
494
494
$ formFactory ->expects ($ this ->once ())->method ('create ' )->willReturn ($ form );
You can’t perform that action at this time.
0 commit comments