diff --git a/Tests/Controller/ControllerTraitTest.php b/Tests/Controller/ControllerTraitTest.php index 36b6bd95b..01e36d0b7 100644 --- a/Tests/Controller/ControllerTraitTest.php +++ b/Tests/Controller/ControllerTraitTest.php @@ -14,6 +14,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\ControllerTrait; use Symfony\Bundle\FrameworkBundle\Tests\TestCase; use Symfony\Component\DependencyInjection\Container; +use Symfony\Component\Form\Form; use Symfony\Component\HttpFoundation\BinaryFileResponse; use Symfony\Component\HttpFoundation\File\File; use Symfony\Component\HttpFoundation\JsonResponse; @@ -486,7 +487,8 @@ public function testCreateNotFoundException() public function testCreateForm() { - $form = $this->getMockBuilder('Symfony\Component\Form\FormInterface')->getMock(); + $config = $this->getMockBuilder('Symfony\Component\Form\FormConfigInterface')->getMock(); + $form = new Form($config); $formFactory = $this->getMockBuilder('Symfony\Component\Form\FormFactoryInterface')->getMock(); $formFactory->expects($this->once())->method('create')->willReturn($form);