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 @@ -431,7 +431,7 @@ public function testRenderViewWithForm()
431
431
{
432
432
$ formView = new FormView ();
433
433
434
- $ form = $ this ->getMockBuilder (FormInterface::class)-> getMock ( );
434
+ $ form = $ this ->createMock (FormInterface::class);
435
435
$ form ->expects ($ this ->once ())->method ('createView ' )->willReturn ($ formView );
436
436
437
437
$ twig = $ this ->getMockBuilder (Environment::class)->disableOriginalConstructor ()->getMock ();
@@ -452,7 +452,7 @@ public function testRenderWithFormSubmittedAndInvalid()
452
452
{
453
453
$ formView = new FormView ();
454
454
455
- $ form = $ this ->getMockBuilder (FormInterface::class)-> getMock ( );
455
+ $ form = $ this ->createMock (FormInterface::class);
456
456
$ form ->expects ($ this ->once ())->method ('createView ' )->willReturn ($ formView );
457
457
$ form ->expects ($ this ->once ())->method ('isSubmitted ' )->willReturn (true );
458
458
$ form ->expects ($ this ->once ())->method ('isValid ' )->willReturn (false );
You can’t perform that action at this time.
0 commit comments