[BUGFIX] Tests: Incomplete mock of $GLOBALS['TYPO3_DB'] 31/28431/3
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 15 Mar 2014 22:52:05 +0000 (23:52 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 15 Mar 2014 23:17:05 +0000 (00:17 +0100)
commit9cdedd07c43388b5dde3e698d6b77077330277d9
treed2caf01b4a4d4fc9d3dfb374ca32ee063115b133
parent64c46b918ef016bdd1d799c5ca06e868d601f692
[BUGFIX] Tests: Incomplete mock of $GLOBALS['TYPO3_DB']

Still some unit tests rely on TYPO3_DB, mostly through the extbase
object manager. The patch fixes most occurrences and skips two
complex tests that should be moved to functional tests later.

This should be the final patch for tests accessing TYPO3_DB.

Change-Id: I8deb0fb9c13b47c8ce4262f041744def9e6b0e79
Resolves: #56947
Related: #51436
Releases: 6.2
Reviewed-on: https://review.typo3.org/28431
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/extbase/Classes/Scheduler/Task.php
typo3/sysext/extbase/Tests/Unit/Object/Container/ContainerTest.php
typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapFactoryTest.php
typo3/sysext/extbase/Tests/Unit/Scheduler/FieldProviderTest.php
typo3/sysext/extbase/Tests/Unit/Scheduler/TaskTest.php
typo3/sysext/extbase/Tests/Unit/Service/FlexFormServiceTest.php
typo3/sysext/extensionmanager/Tests/Unit/Controller/UpdateFromTerControllerTest.php
typo3/sysext/extensionmanager/Tests/Unit/Task/UpdateExtensionListTaskTest.php