laravel-doctrine / orm

A drop-in Doctrine ORM 2 implementation for Laravel 5+ and Lumen

Home Page:http://laraveldoctrine.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Target [Doctrine\Persistence\ManagerRegistry] is not instantiable while building [LaravelDoctrine\ORM\Testing\Factory].

olenchenko-a opened this issue · comments

commented

Package version, Laravel version
Laravel version: 9.x

Expected behaviour
Create an entity using LaravelDoctrine\ORM\Testing\Factory or entity() helper via method create($className).

Actual behaviour
When I call helper entity from unnit test I getting "Target [Doctrine\Persistence\ManagerRegistry] is not instantiable while building [LaravelDoctrine\ORM\Testing\Factory]."

entity(TripManagement\Domain\Tour\Hotel::class)->make();

commented

Ok, my test extends PHPUnit\Framework\TestCase not Tests\TestCase that was problem