Skip to content

Commit

Permalink
Fix DoctrineFactoryTest for Symfony 7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandrePetrone committed Feb 10, 2025
1 parent 457d45b commit ab8bd09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Adapter/Doctrine/DoctrineFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

use Doctrine\ORM\EntityManager;
use Doctrine\Persistence\ManagerRegistry;
use Doctrine\Persistence\ObjectManager;
use Mezcalito\UxSearchBundle\Adapter\Doctrine\DoctrineAdapter;
use Mezcalito\UxSearchBundle\Adapter\Doctrine\DoctrineFactory;
use Mezcalito\UxSearchBundle\Exception\DoctrineAdapterException;
Expand Down Expand Up @@ -63,7 +64,7 @@ public function testCreateAdapterThrowsLogicExceptionWhenManagerRegistryIsNull()

public function testCreateAdapterThrowsDoctrineAdapterExceptionForInvalidManager(): void
{
$invalidManager = new \stdClass();
$invalidManager = $this->createMock(ObjectManager::class);
$managerRegistryMock = $this->createMock(ManagerRegistry::class);
$managerRegistryMock->expects($this->once())
->method('getManager')
Expand Down

0 comments on commit ab8bd09

Please sign in to comment.