8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ca6aee7 + ff51569 commit bb26a36Copy full SHA for bb26a36
src/Symfony/Bundle/FrameworkBundle/Tests/Controller/AbstractControllerTest.php
@@ -567,7 +567,11 @@ public function testCreateNotFoundException()
567
568
public function testCreateForm()
569
{
570
- $form = new Form($this->createMock(FormConfigInterface::class));
+ $config = $this->createMock(FormConfigInterface::class);
571
+ $config->method('getInheritData')->willReturn(false);
572
+ $config->method('getName')->willReturn('');
573
+
574
+ $form = new Form($config);
575
576
$formFactory = $this->createMock(FormFactoryInterface::class);
577
$formFactory->expects($this->once())->method('create')->willReturn($form);
0 commit comments