[+BUGFIX] Extbase (Tests): reset added t3lib_div instances in UriBuilder & Extension...
authorBastian Waidelich <bastian@typo3.org>
Tue, 25 Jan 2011 19:38:28 +0000 (19:38 +0000)
committerBastian Waidelich <bastian@typo3.org>
Tue, 25 Jan 2011 19:38:28 +0000 (19:38 +0000)
typo3/sysext/extbase/Tests/Unit/MVC/Web/Routing/UriBuilderTest.php
typo3/sysext/extbase/Tests/Unit/Utility/ExtensionTest.php

index 3900185..21350d6 100644 (file)
@@ -195,6 +195,8 @@ class Tx_Extbase_Tests_Unit_MVC_Web_Routing_UriBuilderTest extends Tx_Extbase_Te
                $this->assertTrue($this->uriBuilder->getUseCacheHash());
                $this->uriBuilder->uriFor('someNonCacheableAction', array(), 'SomeController', 'SomeExtension');
                $this->assertFalse($this->uriBuilder->getUseCacheHash());
+
+               t3lib_div::purgeInstances();
        }
 
        /**
index 38f30f6..4fb1cbc 100644 (file)
@@ -123,6 +123,7 @@ class Tx_Extbase_Tests_Unit_Utility_ExtensionTest extends tx_phpunit_testcase {
        public function tearDown() {
                $GLOBALS['TYPO3_CONF_VARS'] = $this->typo3ConfVars;
                $GLOBALS['TSFE'] = $this->tsfeBackup;
+               t3lib_div::purgeInstances();
        }
 
        /**