Closed mokhosh closed 7 months ago
https://github.com/laravel/framework/pull/49385 is not merged yet and has nothing to do with this issue.
See https://github.com/laravel/framework/pull/47912
In Laravel 11, RefreshDatabase
and LazilyRefreshDatabase
combined with in-memory database will keep PDO instances between tests and is the root cause of this issue. You would need to reset RefreshDatabaseState
between tests.
Description:
We've been working on dependencies supporting Laravel 11 to be able to support it in Filament. https://github.com/filamentphp/filament/pull/10972
Now the dependencies are ok, but most tests fail with this error:
I checked out the PRs and commits of laravel/framework, but none of them seemed to have caused the issue. I'm guessing it's a testbench issue, specially after going through this PR https://github.com/laravel/framework/pull/49385
Can you please shed some light?
Steps To Reproduce:
git clone git@github.com:filamentphp/filament.git && cd filament
git checkout laravel-11
composer install
composer test