From 6d2f42891122bddca8b916fd0f7a7aa01ff97e17 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Thu, 15 Jul 2021 15:09:03 +0200 Subject: [PATCH] [FrameworkBundle] Fix broken mock Signed-off-by: Alexander M. Turek --- .../Tests/Controller/ControllerTraitTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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);