Issue Bug Closed

#88937Functional tests for cache backends not scoped

Andreas Kienast 08/08/19, 13:31 updated 12/23/19, 22:51

Description

Executing the tests for cache backends alone is not possible due to errors:

$ Build/Scripts/runTests.sh -s functional -d sqlite typo3/sysext/core/Tests/Functional/Cache/Backend
Creating network "local_default" with the default driver
Creating local_redis4_1       ... done
Creating local_memcached1-5_1 ... done
PHP 7.2.15-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Feb  8 2019 15:38:01) ( NTS )
PHPUnit 8.1.6 by Sebastian Bergmann and contributors.

..EEEEEEEEEEEEEE...............................................  63 / 100 ( 63%)
.....................................                           100 / 100 (100%)

Time: 5.69 seconds, Memory: 68.25 MB

There were 14 errors:

1) TYPO3\CMS\Core\Tests\Functional\Cache\Backend\MemcachedBackendTest::itIsPossibleToSetAndCheckExistenceInCache
TypeError: Return value of TYPO3\CMS\Core\Core\Environment::getProjectPath() must be of the type string, null returned

typo3/src/master/typo3/sysext/core/Classes/Core/Environment.php:132
typo3/src/master/typo3/sysext/core/Classes/Cache/Backend/MemcachedBackend.php:207
typo3/src/master/typo3/sysext/core/Tests/Functional/Cache/Backend/MemcachedBackendTest.php:94

// yadda yadda

Reviews 2