[FrameworkBundle] Fix broken mock
Signed-off-by: Alexander M. Turek <me@derrabus.de>
This commit is contained in:
parent
f8b18ce90b
commit
6d2f428911
|
@ -503,7 +503,11 @@ abstract class ControllerTraitTest extends TestCase
|
|||
|
||||
public function testCreateForm()
|
||||
{
|
||||
$form = new Form($this->createMock(FormConfigInterface::class));
|
||||
$config = $this->createMock(FormConfigInterface::class);
|
||||
$config->method('getInheritData')->willReturn(false);
|
||||
$config->method('getName')->willReturn('');
|
||||
|
||||
$form = new Form($config);
|
||||
|
||||
$formFactory = $this->createMock(FormFactoryInterface::class);
|
||||
$formFactory->expects($this->once())->method('create')->willReturn($form);
|
||||
|
|
Reference in New Issue