8000 Merge branch '5.3' into 5.4 · symfony/symfony@bb26a36 · GitHub
[go: up one dir, main page]

Skip to content

Commit bb26a36

Browse files
committed
Merge branch '5.3' into 5.4
* 5.3: [FrameworkBundle] Fix broken mock
2 parents ca6aee7 + ff51569 commit bb26a36

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/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)
0