Skip to content

Conversation

@devfrey
Copy link
Contributor

@devfrey devfrey commented Aug 26, 2024

This PR fixes a regression that was introduced by #52464. Previously, assertModelExists() and assertModelMissing() would respect the model's table and connection (by passing the names to assertDatabaseHas() and assertDatabaseMissing() respectively). This is no longer the case, which caused test failures in my multi-connection project when upgrading to Laravel 11.21. This change ensures the table and connection that may have been changed at runtime are respected.

@taylorotwell taylorotwell merged commit b9cf7d3 into laravel:11.x Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants