[BUG] Target [Doctrine\Persistence\ManagerRegistry] is not instantiable while building [LaravelDoctrine\ORM\Testing\Factory].
olenchenko-a opened this issue · comments
Artem 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();
Artem commented
Ok, my test extends PHPUnit\Framework\TestCase not Tests\TestCase that was problem