Project

General

Profile

Actions

Bug #51381

closed

Functional test Bootstrap outputs missleading message if DB creditinals are wrong

Added by Sascha Egerer about 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2013-08-27
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If you call the functional tests and your db creditinals are wrong you get a misleading error message that your user has no access to create tables.

1) TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandlerTest::canCreateTtContent
TYPO3\CMS\Core\Tests\Exception: Unable to create database with name typo3-core-dev_test_5b92679. This is probably a permission problem. For this instance this could be fixed executing "GRANT ALL ON `typo3-core-dev_test_%`.* TO `wronguser`@`127.0.0.1`;" 

/PATH/TO/FOO/TYPO3.CMS/typo3/sysext/core/Tests/FunctionalTestCaseBootstrapUtility.php:285
/PATH/TO/FOO/TYPO3.CMS/typo3/sysext/core/Tests/FunctionalTestCaseBootstrapUtility.php:73
/PATH/TO/FOO/TYPO3.CMS/typo3/sysext/core/Tests/FunctionalTestCase.php:120
/PATH/TO/FOO/TYPO3.CMS/typo3/sysext/core/Tests/Functional/DataHandling/DataHandlerTest.php:37

There should be a check if the user is allowed to login first.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #51166: Functional testsClosedChristian Kuhn2012-11-01

Actions
Actions

Also available in: Atom PDF