Nimut / testing-framework

TYPO3 testing framework that provides base classes and configuration for PHPUnit tests
GNU General Public License v2.0
52 stars 25 forks source link

Add support for TYPO3 v11 #143

Closed rvock closed 2 years ago

rvock commented 2 years ago

The composer.json specifies support for TYPO3 v11. But when trying to run test cases with TYPO3 v11, I get the following error:

 Uncaught TypeError: Argument 2 passed to TYPO3\CMS\Core\Core\Bootstrap::createPackageManager() must be an instance of TYPO3\CMS\Core\Package\Cache\PackageCacheInterface, instance of TYPO3\CMS\Core\Cache\Frontend\PhpFrontend given

CoreBootstrap Line 247 expects PackageCacheInterface instead of FrontendInterface since https://github.com/TYPO3/typo3/commit/6cfc1a10b946cf1e1729745aedcd6923adcac38c

There is a new helper method Bootstrap::createPackageCache, which converts a FrontendInterface into a PackageCacheInterface interface.

tomasnorre commented 2 years ago

I think this issue can be closed?

rvock commented 2 years ago

@tomasnorre Yes the issue can be closed. For my project, I've switched to typo3/testing-framework which works with TYPO3 v11.

But I also checked just now and the current version of nimut/testing-framework works as well.