diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Controller/ControllerTraitTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Controller/ControllerTraitTest.php index 00007aee3a..fbeb68d6df 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Controller/ControllerTraitTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Controller/ControllerTraitTest.php @@ -503,7 +503,11 @@ abstract class ControllerTraitTest extends TestCase public function testCreateForm() { - $form = new Form($this->createMock(FormConfigInterface::class)); + $config = $this->createMock(FormConfigInterface::class); + $config->method('getInheritData')->willReturn(false); + $config->method('getName')->willReturn(''); + + $form = new Form($config); $formFactory = $this->createMock(FormFactoryInterface::class); $formFactory->expects($this->once())->method('create')->willReturn($form);