[BUGFIX] Log out after running garbage collection tests
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 21 Apr 2011 15:05:43 +0000 (17:05 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 21 Apr 2011 15:12:26 +0000 (17:12 +0200)
TYPO3_DB must be added to $backupGlobalsBlacklist.

Change-Id: I1a4642d563f67582f5a300859a2ecc2ae2e96390
Resolves: #26174
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/1700
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/scheduler/tests/tx_scheduler_cachingframeworkgarbagecollectionTest.php

index 2bd9108..da33ddc 100644 (file)
  * @author Christian Kuhn <lolli@schwarzbu.ch>
  */
 class tx_scheduler_CachingFrameworkGarbageCollectionTest extends tx_phpunit_testcase {
+
+       /**
+        * Enable backup of global and system variables
+        *
+        * @var boolean
+        */
        protected $backupGlobals = TRUE;
 
        /**
+        * Exclude TYPO3_DB from backup/ restore of $GLOBALS
+        * because resource types cannot be handled during serialization
+        *
+        * @var array
+        */
+       protected $backupGlobalsBlacklist = array('TYPO3_DB');
+
+       /**
         * @test
         */
        public function executeCallsCollectGarbageOfConfiguredBackend() {
@@ -59,7 +73,7 @@ class tx_scheduler_CachingFrameworkGarbageCollectionTest extends tx_phpunit_test
        /**
         * @test
         */
-       public function executeDoesNotCallCollectGarbageOfConfiguredBackend() {
+       public function executeDoesNotCallCollectGarbageOfNotConfiguredBackend() {
                $cache = $this->getMock('t3lib_cache_frontend_StringFrontend', array(), array(), '', FALSE);
                $cache->expects($this->any())->method('getIdentifier')->will($this->returnValue('cache'));