File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change 15
15
use Symfony \Bundle \FrameworkBundle \Client ;
16
16
use Symfony \Bundle \FrameworkBundle \Test \WebTestCase ;
17
17
use Symfony \Cmf \Component \Testing \Functional \DbManager \PhpcrDecorator ;
18
- use Symfony \Component \DependencyInjection \Container ;
18
+ use Symfony \Component \DependencyInjection \ContainerInterface ;
19
19
use Symfony \Component \HttpFoundation \Response ;
20
20
21
21
/**
@@ -33,11 +33,6 @@ abstract class BaseTestCase extends WebTestCase
33
33
*/
34
34
protected $ dbManagers = [];
35
35
36
- /**
37
- * @var Container
38
- */
39
- protected $ container ;
40
-
41
36
/**
42
37
* @var Client
43
38
*/
@@ -75,15 +70,11 @@ public function getClient()
75
70
/**
76
71
* Gets the container.
77
72
*
78
- * @return Container
73
+ * @return ContainerInterface
79
74
*/
80
75
public function getContainer ()
81
76
{
82
- if (null === $ this ->container ) {
83
- $ this ->container = $ this ->getClient ()->getContainer ();
84
- }
85
-
86
- return $ this ->container ;
77
+ return self ::$ kernel ->getContainer ();
87
78
}
88
79
89
80
/**
You can’t perform that action at this time.
0 commit comments