Bug #80683
Updated by Mark Watney over 7 years ago
There may be a problem while executing the functional tests of custom extensions (using @typo3/testing-framework@) typo3/testing-framework) in TYPO3 CMS projects? In our projects it seems as if the database credentials set via environment variables are correcty retrieved via @$localConfiguration['DB'] $localConfiguration['DB'] = $testbase->getOriginalDatabaseSettingsFromEnvironmentOrLocalConfiguration();@ $testbase->getOriginalDatabaseSettingsFromEnvironmentOrLocalConfiguration(); in @TYPO3\TestingFramework\Core\Functional\FunctionalTestCase@ TYPO3\TestingFramework\Core\Functional\FunctionalTestCase but are not used when executing a test: there the database credentials set in the project’s Localconfiguration.php seem to be used. We use both the current dev-master of TYPO3 CMS and the current dev-master of @typo3/testing-framework@. typo3/testing-framework. <pre> There were 29 errors: 1) ACME\Base\Tests\Functional\Service\SettingsServiceTest::canReturnFrameworkConfiguration Doctrine\DBAL\Exception\ConnectionException: An exception occured in driver: No such file or directory /Volumes/Projects/MyProject/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:103 /Volumes/Projects/MyProject/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:145 /Volumes/Projects/MyProject/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Mysqli/Driver.php:43 /Volumes/Projects/MyProject/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:360 /Volumes/Projects/MyProject/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:429 /Volumes/Projects/MyProject/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:389 /Volumes/Projects/MyProject/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:328 /Volumes/Projects/MyProject/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:64 /Volumes/Projects/MyProject/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:173 /Volumes/Projects/MyProject/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1398 /Volumes/Projects/MyProject/Web/vendor/typo3/testing-framework/Classes/Core/Testbase.php:503 /Volumes/Projects/MyProject/Web/vendor/typo3/testing-framework/Classes/Core/Functional/FunctionalTestCase.php:274 /Volumes/Projects/MyProject/Web/typo3conf/ext/acme_base/Tests/Functional/Service/SettingsServiceTest.php:34 Caused by Doctrine\DBAL\Driver\Mysqli\MysqliException: No such file or directory /Volumes/Projects/MyProject/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php:73 /Volumes/Projects/MyProject/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Mysqli/Driver.php:41 /Volumes/Projects/MyProject/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:360 /Volumes/Projects/MyProject/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:429 /Volumes/Projects/MyProject/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:389 /Volumes/Projects/MyProject/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:328 /Volumes/Projects/MyProject/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:64 /Volumes/Projects/MyProject/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:173 /Volumes/Projects/MyProject/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1398 /Volumes/Projects/MyProject/Web/vendor/typo3/testing-framework/Classes/Core/Testbase.php:503 /Volumes/Projects/MyProject/Web/vendor/typo3/testing-framework/Classes/Core/Functional/FunctionalTestCase.php:274 /Volumes/Projects/MyProject/Web/typo3conf/ext/acme_base/Tests/Functional/Service/SettingsServiceTest.php:34 ... </pre>