File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Bundle/FrameworkBundle/Tests/Controller
Component/HttpKernel/Tests/EventListener Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 14
14
use Symfony \Bundle \FrameworkBundle \Controller \ControllerTrait ;
15
15
use Symfony \Bundle \FrameworkBundle \Tests \TestCase ;
16
16
use Symfony \Component \DependencyInjection \Container ;
17
+ use Symfony \Component \Form \Form ;
17
18
use Symfony \Component \HttpFoundation \BinaryFileResponse ;
18
19
use Symfony \Component \HttpFoundation \File \File ;
19
20
use Symfony \Component \HttpFoundation \JsonResponse ;
@@ -486,7 +487,8 @@ public function testCreateNotFoundException()
486
487
487
488
public function testCreateForm ()
488
489
{
489
- $ form = $ this ->getMockBuilder ('Symfony\Component\Form\FormInterface ' )->getMock ();
490
+ $ config = $ this ->getMockBuilder ('Symfony\Component\Form\FormConfigInterface ' )->getMock ();
491
+ $ form = new Form ($ config );
490
492
491
493
$ formFactory = $ this ->getMockBuilder ('Symfony\Component\Form\FormFactoryInterface ' )->getMock ();
492
494
$ formFactory ->expects ($ this ->once ())->method ('create ' )->willReturn ($ form );
Original file line number Diff line number Diff line change 19
19
use Symfony \Component \HttpKernel \EventListener \ProfilerListener ;
20
20
use Symfony \Component \HttpKernel \Exception \HttpException ;
21
21
use Symfony \Component \HttpKernel \Kernel ;
22
+ use Symfony \Component \HttpKernel \Profiler \Profile ;
22
23
23
24
class ProfilerListenerTest extends TestCase
24
25
{
@@ -27,9 +28,7 @@ class ProfilerListenerTest extends TestCase
27
28
*/
28
29
public function testKernelTerminate ()
29
30
{
30
- $ profile = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\Profiler\Profile ' )
31
- ->disableOriginalConstructor ()
32
- ->getMock ();
31
+ $ profile = new Profile ('token ' );
33
32
34
33
$ profiler = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\Profiler\Profiler ' )
35
34
->disableOriginalConstructor ()
You can’t perform that action at this time.
0 commit comments