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

View File

@ -513,7 +513,11 @@ class AbstractControllerTest extends TestCase
public function testCreateForm() 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 = $this->createMock(FormFactoryInterface::class);
$formFactory->expects($this->once())->method('create')->willReturn($form); $formFactory->expects($this->once())->method('create')->willReturn($form);