We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc30078 commit 9f79bdbCopy full SHA for 9f79bdb
Tests/Controller/ControllerTraitTest.php
@@ -503,7 +503,11 @@ public function testCreateNotFoundException()
503
504
public function testCreateForm()
505
{
506
- $form = new Form($this->createMock(FormConfigInterface::class));
+ $config = $this->createMock(FormConfigInterface::class);
507
+ $config->method('getInheritData')->willReturn(false);
508
+ $config->method('getName')->willReturn('');
509
+
510
+ $form = new Form($config);
511
512
$formFactory = $this->createMock(FormFactoryInterface::class);
513
$formFactory->expects($this->once())->method('create')->willReturn($form);
0 commit comments