Skip to content

Commit 4a569e8

Browse files
committed
Merge branch '5.2' into 5.3
* 5.2: [FrameworkBundle] Fix broken mock
2 parents 6458735 + 7d88cf2 commit 4a569e8

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
@@ -567,7 +567,11 @@ public function testCreateNotFoundException()
567567

568568
public function testCreateForm()
569569
{
570-
$form = new Form($this->createMock(FormConfigInterface::class));
570+
$config = $this->createMock(FormConfigInterface::class);
571+
$config->method('getInheritData')->willReturn(false);
572+
$config->method('getName')->willReturn('');
573+
574+
$form = new Form($config);
571575

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

0 commit comments

Comments
 (0)