# Problem with tests in cake5

**URL:** <https://discourse.cakephp.org/t/problem-with-tests-in-cake5/11918>\
**Category:** Need Help\
**Created:** [March 4, 2024, 10:05pm UTC](https://discourse.cakephp.org/t/problem-with-tests-in-cake5/11918 "2024-03-04T22:05:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![arodu](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/arodu/32/2253_2.png) [@arodu](https://discourse.cakephp.org/u/arodu)\
**Post date:** [March 4, 2024, 10:05pm UTC](https://discourse.cakephp.org/t/problem-with-tests-in-cake5/11918/1 "2024-03-04T22:05:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![KevinPfeifer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/kevinpfeifer/32/3365_2.png) [@KevinPfeifer](https://discourse.cakephp.org/u/KevinPfeifer)\
**Post date:** [March 5, 2024, 6:49am UTC](https://discourse.cakephp.org/t/problem-with-tests-in-cake5/11918/2 "2024-03-05T06:49:11Z")

</div>

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

> <https://github.com/cakephp/app/blob/5.x/phpunit.xml.dist#L23-L25>

It is responsible to do the connection aliasing.

Also see [PHPUnit 10 Upgrade - 5.x](https://book.cakephp.org/5/en/appendices/phpunit10.html)
