[BUGFIX] Log out after running garbage collection tests
[Packages/TYPO3.CMS.git] / typo3 / sysext / scheduler / tests / tx_scheduler_cachingframeworkgarbagecollectionTest.php
index 9cfaefe..72f0106 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'));