Skip to content

Commit cbb2978

Browse files
Merge branch '3.4' into 4.1
* 3.4: Bump phpunit bridge cache id [appveyor] fix create-project phpunit Fix HttpKernel Debug requirement Fix heredoc use final annotation to allow mocking the class synchronise the form builder docblock Grammar fix in exception message fix tests forward the parse error to the calling code [Debug][DebugClassLoader] Match more cases for final, deprecated and internal classes / methods extends ensure compatibility with older PHPUnit mocks [Security] Do not mix usage of password_*() functions and sodium_*() ones
2 parents 0e2b81a + 9a75738 commit cbb2978

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/Controller/ControllerTraitTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Symfony\Bundle\FrameworkBundle\Controller\ControllerTrait;
1515
use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
1616
use Symfony\Component\DependencyInjection\Container;
17+
use Symfony\Component\Form\Form;
1718
use Symfony\Component\HttpFoundation\BinaryFileResponse;
1819
use Symfony\Component\HttpFoundation\File\File;
1920
use Symfony\Component\HttpFoundation\JsonResponse;
@@ -486,7 +487,8 @@ public function testCreateNotFoundException()
486487

487488
public function testCreateForm()
488489
{
489-
$form = $this->getMockBuilder('Symfony\Component\Form\FormInterface')->getMock();
490+
$config = $this->getMockBuilder('Symfony\Component\Form\FormConfigInterface')->getMock();
491+
$form = new Form($config);
490492

491493
$formFactory = $this->getMockBuilder('Symfony\Component\Form\FormFactoryInterface')->getMock();
492494
$formFactory->expects($this->once())->method('create')->willReturn($form);

0 commit comments

Comments
 (0)