Fixed bug #12792: Unit test checkGetExtensionKeyByPrefix of the t3lib_extmgm_testcase...
authorOliver Hader <oliver.hader@typo3.org>
Sun, 29 Nov 2009 13:11:49 +0000 (13:11 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Sun, 29 Nov 2009 13:11:49 +0000 (13:11 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6576 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_extmgm.php
tests/t3lib/t3lib_extmgm_testcase.php

index b3d9a23..b2af94b 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,7 @@
 2009-11-29  Oliver Hader  <oliver@typo3.org>
 
        * Fixed bug #12786: Wrong mouseover cursor at icon of docheader (thanks to Georg Ringer)
 2009-11-29  Oliver Hader  <oliver@typo3.org>
 
        * Fixed bug #12786: Wrong mouseover cursor at icon of docheader (thanks to Georg Ringer)
+       * Fixed bug #12792: Unit test checkGetExtensionKeyByPrefix of the t3lib_extmgm_testcase fails
 
 2009-11-26  Francois Suter  <francois@typo3.org>
 
 
 2009-11-26  Francois Suter  <francois@typo3.org>
 
index 7710828..eadd23d 100644 (file)
@@ -220,6 +220,15 @@ final class t3lib_extMgm {
                return $result;
        }
 
                return $result;
        }
 
+       /**
+        * Clears the extension key map.
+        *
+        * @return      void
+        */
+       public static function clearExtensionKeyMap() {
+               self::$extensionKeyMap = NULL;
+       }
+
 
 
 
 
 
 
index 736cd7a..103a12b 100644 (file)
@@ -53,6 +53,8 @@ class t3lib_extmgm_testcase extends tx_phpunit_testcase {
                $GLOBALS['TYPO3_LOADED_EXT']['tt_news' . $uniqueSuffix] = array();
                $GLOBALS['TYPO3_LOADED_EXT']['kickstarter' . $uniqueSuffix] = array();
 
                $GLOBALS['TYPO3_LOADED_EXT']['tt_news' . $uniqueSuffix] = array();
                $GLOBALS['TYPO3_LOADED_EXT']['kickstarter' . $uniqueSuffix] = array();
 
+               t3lib_extMgm::clearExtensionKeyMap();
+
                $this->assertEquals(
                        'tt_news' . $uniqueSuffix,
                        t3lib_extMgm::getExtensionKeyByPrefix('tx_ttnews' . $uniqueSuffix)
                $this->assertEquals(
                        'tt_news' . $uniqueSuffix,
                        t3lib_extMgm::getExtensionKeyByPrefix('tx_ttnews' . $uniqueSuffix)