[TASK] Deprecate $GLOBALS['TYPO3_LOADED_EXT']
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Unit / Utility / ExtensionUtilityTest.php
index 2235b34..339f7d6 100644 (file)
@@ -275,15 +275,13 @@ class ExtensionUtilityTest extends UnitTestCase
     public function registerPluginTriggersAddPluginWhichSetsPluginIconPathIfUsingUnderscoredExtensionNameAndIconPathNotGiven()
     {
         $GLOBALS['TCA']['tt_content']['columns']['list_type']['config']['items'] = [];
-        $GLOBALS['TYPO3_LOADED_EXT'] = [];
-        $GLOBALS['TYPO3_LOADED_EXT']['indexed_search']['ext_icon'] = 'foo.gif';
         ExtensionUtility::registerPlugin(
             'indexed_search',
             'Pi2',
             'Testing'
         );
         $this->assertEquals(
-            'EXT:indexed_search/foo.gif',
+            'EXT:indexed_search/Resources/Public/Icons/Extension.png',
             $GLOBALS['TCA']['tt_content']['columns']['list_type']['config']['items'][0][2]
         );
     }
@@ -297,15 +295,13 @@ class ExtensionUtilityTest extends UnitTestCase
     public function registerPluginTriggersAddPluginWhichSetsPluginIconPathIfUsingUpperCameCasedExtensionNameAndIconPathNotGiven()
     {
         $GLOBALS['TCA']['tt_content']['columns']['list_type']['config']['items'] = [];
-        $GLOBALS['TYPO3_LOADED_EXT'] = [];
-        $GLOBALS['TYPO3_LOADED_EXT']['indexed_search']['ext_icon'] = 'foo.gif';
         ExtensionUtility::registerPlugin(
             'IndexedSearch',
             'Pi2',
             'Testing'
         );
         $this->assertEquals(
-            'EXT:indexed_search/foo.gif',
+            'EXT:indexed_search/Resources/Public/Icons/Extension.png',
             $GLOBALS['TCA']['tt_content']['columns']['list_type']['config']['items'][0][2]
         );
     }