This repository was archived by the owner on Nov 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88use Cethyworks \ContentInjectorBundle \Form \Extension \InjectorAwareTypeExtension ;
99use PHPUnit \Framework \TestCase ;
1010use Symfony \Component \Form \Extension \Core \Type \FormType ;
11- use Symfony \Component \Form \FormInterface ;
11+ use Symfony \Component \Form \Form ;
1212use Symfony \Component \Form \FormView ;
1313use Symfony \Component \OptionsResolver \OptionsResolver ;
1414
@@ -60,7 +60,7 @@ public function testBuildViewShouldNotRegisterInjector()
6060 $ options = ['injector ' => false ];
6161
6262 $ view = new FormView ();
63- $ form = $ this ->getMockBuilder (FormInterface ::class)->disableOriginalConstructor ()->getMock ();
63+ $ form = $ this ->getMockBuilder (Form ::class)->disableOriginalConstructor ()->getMock ();
6464
6565 $ this ->commandFactory ->expects ($ this ->never ())->method ('create ' );
6666 $ this ->subscriber ->expects ($ this ->never ())->method ('registerCommand ' );
@@ -73,7 +73,7 @@ public function testBuildViewShouldRegisterInjector()
7373 $ options = ['injector ' => ['template ' => 'foo ' ]];
7474
7575 $ view = new FormView ();
76- $ form = $ this ->getMockBuilder (FormInterface ::class)->disableOriginalConstructor ()->getMock ();
76+ $ form = $ this ->getMockBuilder (Form ::class)->disableOriginalConstructor ()->getMock ();
7777 $ command = $ this ->getMockBuilder (TwigCommand::class)->disableOriginalConstructor ()->getMock ();
7878
7979 $ this ->commandFactory ->expects ($ this ->once ())->method ('create ' )->with ($ view , $ options ['injector ' ])->willReturn ($ command );
You can’t perform that action at this time.
0 commit comments