File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ abstract class BaseKernelTestCase extends KernelTestCase
26
26
protected function setUp (): void
27
27
{
28
28
self ::bootKernel ();
29
- $ this ->entityManager = static ::$ kernel ->getContainer ()->get ('doctrine.orm.entity_manager ' );
29
+
30
+ $ this ->entityManager = $ this ->get ('doctrine.orm.entity_manager ' );
30
31
$ this ->searchService = $ this ->get ('search.service ' );
31
32
32
33
$ metaData = $ this ->entityManager ->getMetadataFactory ()->getAllMetadata ();
@@ -175,7 +176,7 @@ protected function getPrefix(): string
175
176
176
177
protected function get (string $ id ): ?object
177
178
{
178
- return self ::$ kernel -> getContainer ()->get ($ id );
179
+ return self ::getContainer ()->get ($ id );
179
180
}
180
181
181
182
protected function getFileName (string $ indexName , string $ type ): string
You can’t perform that action at this time.
0 commit comments