Closed SirTomme closed 4 months ago
Are you using paratest? Is it maybe related to that?
No I'm not using paratest. That TEST_TOKEN entry is put there by the default installation and I just left it there for the future me ;)
Okay the issue can be closed 🙈
I am running some WebTestCases with static::createClient(['debug' => false])
for better performance but missed to clear the cache for env=test
after updating the packages.
Hello @dmaicher, I think there was a regression of some kind between v8.0.2 and v8.1.0.
Today I realized that rollbacks were not working after a composer update. I could boil it down to the fact that with
composer require --dev dama/doctrine-test-bundle:8.0.2
(as before) everything works great and withcomposer require --dev dama/doctrine-test-bundle:8.1.0
it does not. Nothing else changed in the project.As you suggested before here I checked if
$connections
is populated. I placed a simpledump(self::$connections);
in\DAMA\DoctrineTestBundle\Doctrine\DBAL\StaticDriver::rollBack()
. With both versions the function is being called but with 8.0.2 it dumps my PDO/sqlite connection and with 8.1.0 it dumps an empty array.With 8.0.2
With 8.1.0
Same but just dumping
[]
StaticDriver::connect
is called and returns with the first statement:⚠️This is not the case with 8.0.2 were it runs to the end of
connect()
and returns anew StaticConnection($connection, $platform)
Originally posted by @SirTomme in https://github.com/dmaicher/doctrine-test-bundle/issues/284#issuecomment-2163000082
This is my DBAL config:
Nothing special there, I think but I am using the
doctrine/doctrine-fixtures-bundle:^3.5
.I try to create a minimal Repo that reproduces the bug but this may take some days.