Skip to content

Commit 9f79bdb

Browse files
committed
[FrameworkBundle] Fix broken mock
Signed-off-by: Alexander M. Turek <[email protected]>
1 parent cc30078 commit 9f79bdb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Tests/Controller/ControllerTraitTest.php

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

504504
public function testCreateForm()
505505
{
506-
$form = new Form($this->createMock(FormConfigInterface::class));
506+
$config = $this->createMock(FormConfigInterface::class);
507+
$config->method('getInheritData')->willReturn(false);
508+
$config->method('getName')->willReturn('');
509+
510+
$form = new Form($config);
507511

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

0 commit comments

Comments
 (0)