Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FunctionalTestCases from typo3/testing-framework does not work with typo3-config-handling. #42

Open
devmes opened this issue Jun 21, 2022 · 2 comments
Labels

Comments

@devmes
Copy link

devmes commented Jun 21, 2022

When I try to execute a functional test, the dynamically generated "TYPO3 Configuration" cannot be read. For example no connection to the TestDB can be created, because the credendtials are missing.
Cause is that the typo3/testing-framework creates a temporary typo3conf/LocalConfiguration.php file, but this is not accepted from the extended ConfigurationManager.

Now my question:

  • Do I have something configured wrong?
  • Is it possible to disable the extended ConfigurationManager from this package in FunctionalTests or to configure it to read the temporary LocalConfiguration?

kind regards
DM

@helhum
Copy link
Owner

helhum commented Jun 21, 2022

The only solution for now is to remove this package before executing functional tests. Since this is possible to automate in a CI, I don't think I'm going to provide any other workaround any time soon.

@helhum helhum added the bug label Dec 5, 2024
@helhum
Copy link
Owner

helhum commented Dec 5, 2024

@devmes @moe2k A very simple fix would be to wrap the alias call with a check against an env var, so that the package can be disabled for test. Would this server the purpose for you? The only an env var needs to be exposed during testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants