Skip to content

Commit f07cc98

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: [FrameworkBundle] Fix broken mock
2 parents 5ecff7f + 1d1a5de commit f07cc98

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Tests/Controller/AbstractControllerTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,11 @@ public function testCreateNotFoundException()
513513

514514
public function testCreateForm()
515515
{
516-
$form = new Form($this->createMock(FormConfigInterface::class));
516+
$config = $this->createMock(FormConfigInterface::class);
517+
$config->method('getInheritData')->willReturn(false);
518+
$config->method('getName')->willReturn('');
519+
520+
$form = new Form($config);
517521

518522
$formFactory = $this->createMock(FormFactoryInterface::class);
519523
$formFactory->expects($this->once())->method('create')->willReturn($form);

0 commit comments

Comments
 (0)