Problem with tests in cake5

In a project in which I am upgrading to cakephp 5, when running the tests, they are running in the main db “default”, in the cake4.5 version it works perfectly.

I’m using:
cakephp 5.0.5
fixture-factories 3.0.2
PHPUnit 10.5.11

Make sure you use the new phpunit extension in your phpunit.xml

It is responsible to do the connection aliasing.

Also see PHPUnit 10 Upgrade - 5.x

1 Like