[QUESTION] Tests with Entity Factories fail in a Docker container
mattkoch614 opened this issue · comments
I am trying to get PHPUnit tests for a Laravel project passing when using Docker. We're using docker-compose
to set up a few containers for the laravel app, mysql database, and web server.
When I try to run PHPUnit tests, it seems anywhere that I try to use an entity factory causes the test to fail with the following error:
entity(LabResult::class, 25)->create([
'mrn' => '12345',
'irb' => 'test'
]);
TypeError: Argument 1 passed to Doctrine\ORM\Tools\Setup::createCacheConfiguration() must be of the type bool, null given, called in /var/www/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php on line 126
Any ideas from the community?
Ack, I think it's because I'm on an older version. #315 Seems to fix this issue.