[BUGFIX] Backup singletons in unit tests prior to other setUp operations 38/22838/3
authorNicole Cordes <typo3@cordes.co>
Tue, 6 Aug 2013 10:22:51 +0000 (12:22 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Tue, 6 Aug 2013 22:38:43 +0000 (00:38 +0200)
commita079ad679f1726e9d8eff5723d0b590b4b3cee87
treee691ff353b643e2f40e1db5aa472061648dc4cc1
parentb36f0d8659c4a2df5583f92357fbe4968242f71f
[BUGFIX] Backup singletons in unit tests prior to other setUp operations

If the singleton management is changed in unit tests, a local copy of
the previous stage is done to re-construct this state in tearDown().
This has to be done before any other instantiation in setUp() is
initiated which might register additional singletons.

Resolves: #50812
Releases: 6.2, 6.1, 6.0
Change-Id: I7788a5788aca6777040b777aeceb0558f96022b2
Reviewed-on: https://review.typo3.org/22838
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/core/Tests/Functional/Utility/File/ExtendedFileUtilityTest.php
typo3/sysext/core/Tests/Unit/FormProtection/BackendFormProtectionTest.php
typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php
typo3/sysext/core/Tests/Unit/Resource/Utility/FileExtensionFilterTest.php
typo3/sysext/core/Tests/Unit/Utility/ExtensionMangementUtilityTest.php
typo3/sysext/fluid/Tests/Unit/View/StandaloneViewTest.php