Skip to content

Commit 6fb6862

Browse files
bors[bot]norkunas
andauthored
Merge #142
142: Fix tests r=curquiza a=norkunas # Pull Request ## What does this PR do? Fixes tests ## PR checklist Please check if your PR fulfills the following requirements: - [ ] Does this PR fix an existing issue? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Co-authored-by: Tomas <[email protected]>
2 parents 2bf8416 + 38c83e4 commit 6fb6862

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/BaseKernelTestCase.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ abstract class BaseKernelTestCase extends KernelTestCase
2626
protected function setUp(): void
2727
{
2828
self::bootKernel();
29-
$this->entityManager = static::$kernel->getContainer()->get('doctrine.orm.entity_manager');
29+
30+
$this->entityManager = $this->get('doctrine.orm.entity_manager');
3031
$this->searchService = $this->get('search.service');
3132

3233
$metaData = $this->entityManager->getMetadataFactory()->getAllMetadata();
@@ -175,7 +176,7 @@ protected function getPrefix(): string
175176

176177
protected function get(string $id): ?object
177178
{
178-
return self::$kernel->getContainer()->get($id);
179+
return self::getContainer()->get($id);
179180
}
180181

181182
protected function getFileName(string $indexName, string $type): string

0 commit comments

Comments
 (0)