Skip to content

Commit

Permalink
Fix failing test with recent doctrine/orm
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky committed Jan 6, 2022
1 parent 7f6209e commit b9088db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/DataCollector/DoctrineDataCollectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Doctrine\Bundle\DoctrineBundle\DataCollector\DoctrineDataCollector;
use Doctrine\DBAL\Logging\DebugStack;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Mapping\ClassMetadataFactory;
use Doctrine\ORM\Mapping\ClassMetadataInfo;
use Doctrine\Persistence\ManagerRegistry;
use PHPUnit\Framework\TestCase;
Expand All @@ -27,8 +28,7 @@ public function testCollectEntities(): void

$manager = $this->getMockBuilder('Doctrine\ORM\EntityManager')->disableOriginalConstructor()->getMock();
$config = $this->getMockBuilder('Doctrine\ORM\Configuration')->getMock();
$factory = $this->getMockBuilder('Doctrine\Persistence\Mapping\AbstractClassMetadataFactory')
->setMethods(['getLoadedMetadata'])->getMockForAbstractClass();
$factory = $this->getMockBuilder(ClassMetadataFactory::class)->setMethods(['getLoadedMetadata'])->getMock();
$collector = $this->createCollector(['default' => $manager]);

$manager->expects($this->any())
Expand Down

0 comments on commit b9088db

Please sign in to comment.