Skip to content

Commit d8e9c7c

Browse files
Merge branch '4.1' into 4.2
* 4.1: 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 0bf225b + cbb2978 commit d8e9c7c

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
@@ -15,6 +15,7 @@
1515
use Symfony\Bundle\FrameworkBundle\Controller\ControllerTrait;
1616
use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
1717
use Symfony\Component\DependencyInjection\Container;
18+
use Symfony\Component\Form\Form;
1819
use Symfony\Component\HttpFoundation\BinaryFileResponse;
1920
use Symfony\Component\HttpFoundation\File\File;
2021
use Symfony\Component\HttpFoundation\JsonResponse;
@@ -487,7 +488,8 @@ public function testCreateNotFoundException()
487488

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

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

0 commit comments

Comments
 (0)