Project

General

Profile

Actions

Bug #80683

closed

Fatal errors while executing functional tests of custom extensions

Added by Mark Watney about 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Tests
Target version:
-
Start date:
2017-04-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

There may be a problem while executing the functional tests of custom extensions (using 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'] = $testbase->getOriginalDatabaseSettingsFromEnvironmentOrLocalConfiguration(); in 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.

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

...
Actions #1

Updated by Mark Watney about 7 years ago

  • Description updated (diff)
Actions #2

Updated by Nicole Cordes almost 7 years ago

  • Status changed from New to Closed

As this is related to the testing framework, I'm closing this Core issue. There is already a report in the testing-framework's issue tracker (https://github.com/TYPO3/testing-framework/issues/6)

Actions

Also available in: Atom PDF