#96076Composer install of extension composer.json as root fails, when testing framework hook is used
Description
Error:
Extension "extension_key" not installed with Composer. This is deprecated and will not work any more with TYPO3 12. [TYPO3\CMS\Core\Package\Exception\InvalidPackageStateException] Package "extension_key" is already registered.
See e.g.: https://github.com/sypets/example_typo3_extension/runs/4299398530?check_suite_focus=true