Merge branch '4.4' into 5.2

* 4.4:
  [FrameworkBundle] Fix broken mock
This commit is contained in:
Alexander M. Turek 2021-07-15 16:28:40 +02:00
commit 7198c225dd
1 changed files with 5 additions and 1 deletions

View File

@ -513,7 +513,11 @@ class AbstractControllerTest 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);