[TASK] Tests: Simplify unit test bootstrap 99/28199/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 9 Mar 2014 16:00:31 +0000 (17:00 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 9 Mar 2014 16:09:28 +0000 (17:09 +0100)
There is no need to initialize $GLOBALS['BE_USER'] anymore
in unit tests since mocking of this dependency is complete.

Change-Id: I21ab751d4b66ba2d9658becbd6e0fcd16d139c4b
Resolves: #56689
Related: #51436
Releases: 6.2
Reviewed-on: https://review.typo3.org/28199
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/core/Build/UnitTestsBootstrap.php

index b918fb9..6f18cc2 100644 (file)
@@ -104,5 +104,4 @@ require PATH_site . '/typo3/sysext/core/Classes/Core/Bootstrap.php';
        ->applyAdditionalConfigurationSettings()
        // TODO: Unit Tests should be able to run without database connection
        ->initializeTypo3DbGlobal()
-       ->loadExtensionTables(TRUE)
-       ->initializeBackendUser();
\ No newline at end of file
+       ->loadExtensionTables(TRUE);
\ No newline at end of file