[FrameworkBundle] Fix broken mock

Signed-off-by: Alexander M. Turek <me@derrabus.de>
This commit is contained in:
Alexander M. Turek 2021-07-15 15:09:03 +02:00
parent f8b18ce90b
commit 6d2f428911
1 changed files with 5 additions and 1 deletions

View File

@ -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);