Skip to content

Commit 7d88cf2

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: [FrameworkBundle] Fix broken mock
2 parents c829bf0 + 9f79bdb commit 7d88cf2

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)