[TASK] Reduce memory footprint of unit test suite 89/28089/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Wed, 5 Mar 2014 22:37:38 +0000 (23:37 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Wed, 5 Mar 2014 22:45:00 +0000 (23:45 +0100)
Switching to transientMemoryBackend for some caches raises the
memory footprint of unit test. Change the bootstrap a bit to not
use this cache backend in unit tests.

Change-Id: I3bc4774c4c9c6a24314681491bfdf23a9eab570d
Resolves: #56585
Related: #56583
Releases: 6.2
Reviewed-on: https://review.typo3.org/28089
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/core/Build/UnitTestsBootstrap.php

index 9ffd6fb..7dd5f8c 100644 (file)
@@ -98,7 +98,7 @@ $_SERVER['SCRIPT_NAME'] = PATH_thisScript;
 require PATH_site . '/typo3/sysext/core/Classes/Core/Bootstrap.php';
 \TYPO3\CMS\Core\Core\Bootstrap::getInstance()
        ->baseSetup()
-       ->loadConfigurationAndInitialize(FALSE)
+       ->loadConfigurationAndInitialize(TRUE)
        // TODO: Maybe load only core extensions here? Also check if we need to change the bootstrap since we have package management now
        ->loadTypo3LoadedExtAndExtLocalconf(FALSE)
        ->applyAdditionalConfigurationSettings()