Skip to content

Commit 1bbe59a

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/2.12.x' into 2.13.x
2 parents 794cb9e + 1ea2b5b commit 1bbe59a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/RegistryTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
use Doctrine\Common\Annotations\AnnotationReader;
99
use Doctrine\DBAL\Connection;
1010
use Doctrine\ORM\EntityManagerInterface;
11+
use Doctrine\Persistence\ObjectManager;
1112
use Fixtures\Bundles\RepositoryServiceBundle\Entity\TestCustomClassRepoEntity;
1213
use Fixtures\Bundles\RepositoryServiceBundle\Repository\TestCustomClassRepoRepository;
1314
use InvalidArgumentException;
1415
use ProxyManager\Proxy\ProxyInterface;
15-
use stdClass;
1616
use Symfony\Component\DependencyInjection\Container;
1717
use Symfony\Component\VarExporter\LazyObjectInterface;
1818

@@ -78,7 +78,7 @@ public function testGetConnectionNames(): void
7878

7979
public function testGetDefaultEntityManager(): void
8080
{
81-
$em = new stdClass();
81+
$em = $this->createMock(ObjectManager::class);
8282
$container = new Container();
8383
$container->set('doctrine.orm.default_entity_manager', $em);
8484

@@ -89,7 +89,7 @@ public function testGetDefaultEntityManager(): void
8989

9090
public function testGetEntityManager(): void
9191
{
92-
$em = new stdClass();
92+
$em = $this->createMock(ObjectManager::class);
9393
$container = new Container();
9494
$container->set('doctrine.orm.default_entity_manager', $em);
9595

0 commit comments

Comments
 (0)