Skip to content

Commit

Permalink
Fix tests with newest doctrine/persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky committed Jun 23, 2024
1 parent 9910dc5 commit 1ea2b5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/RegistryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\DBAL\Connection;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\Persistence\ObjectManager;
use Fixtures\Bundles\RepositoryServiceBundle\Entity\TestCustomClassRepoEntity;
use Fixtures\Bundles\RepositoryServiceBundle\Repository\TestCustomClassRepoRepository;
use InvalidArgumentException;
use ProxyManager\Proxy\ProxyInterface;
use stdClass;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\VarExporter\LazyObjectInterface;

Expand Down Expand Up @@ -78,7 +78,7 @@ public function testGetConnectionNames(): void

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

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

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

Expand Down

0 comments on commit 1ea2b5b

Please sign in to comment.