Merge branch '4.4' into 5.2
* 4.4: [FrameworkBundle] Fix broken mock
This commit is contained in:
commit
7198c225dd
@ -513,7 +513,11 @@ class AbstractControllerTest extends TestCase
|
|||||||
|
|
||||||
public function testCreateForm()
|
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 = $this->createMock(FormFactoryInterface::class);
|
||||||
$formFactory->expects($this->once())->method('create')->willReturn($form);
|
$formFactory->expects($this->once())->method('create')->willReturn($form);
|
||||||
|
Reference in New Issue
Block a user