TYPO3 / CmsComposerInstallers

TYPO3 CMS Composer Installer
GNU General Public License v2.0
58 stars 39 forks source link

[BUGFIX] Disable Composer package handling for extension testing #123

Closed helhum closed 3 years ago

helhum commented 3 years ago

The testing framework creates new TYPO3 instances for functional tests, which operate as classic non Composer TYPO3 installation. Therefore we enable all handling for such instances accordingly. Older TYPO3 versions worked fine mostly without this special handling, because the only effective difference was class loading, which worked fine as the autoload.php was included, which made all classes available. However even for these versions, some edge cases could occur with some test extensions, where non Composer handling would have been required.

To not break existing CI, a special Application Context is introduced. When testing extensions with TYPO3 11, the environment variable TYPO3_CONTEXT MUST contain the string "ExtensionTesting". This means you must set the application context to something like: "Production/ExtensionTesting", "Development/ExtensionTesting" or even "Production/MyEnvironment/ExtensionTesting".

helhum commented 3 years ago

Solved in testing framework