Nimut / testing-framework

TYPO3 testing framework that provides base classes and configuration for PHPUnit tests
GNU General Public License v2.0
52 stars 25 forks source link

[BUGFIX] Prevent deprecation errors due to trigger_error #75

Closed IchHabRecht closed 6 years ago

IchHabRecht commented 6 years ago

This patch ensures the database connection is initialized before any deprecation error is handled by \TYPO3\CMS\Core\Error\ErrorHandler. This is important as currently TYPO3 enforces an opened database connection if initCommands are set that are configured in testing- framework configuration. Opening a database connection inside the ErrorHandler triggers some Doctrine DBAL api that sets and resets own error handlers. Resetting an error handler inside another error handler seems to even reset the later one.

helhum commented 6 years ago

do we still need this after TYPO3 was fixed?

IchHabRecht commented 6 years ago

As this is for the compat v90 version, I think we still need it as long we support 9.0 (until 9 LTS is released).