[FOLLOWUP][TASK] Always use Icon API for Module Icons 42/46542/2
authorBenni Mack <benni@typo3.org>
Tue, 9 Feb 2016 09:08:59 +0000 (10:08 +0100)
committerBenni Mack <benni@typo3.org>
Tue, 9 Feb 2016 09:09:51 +0000 (10:09 +0100)
The Icon API with icon identifiers is now used throughout the
core when rendering module icons. This avoids some additional
custom code on several places to identify backpaths etc.

Resolves: #73186
Releases: master
Change-Id: I1c0a84d37c0da82db71e32356bac0fcf30597947
Reviewed-on: https://review.typo3.org/46542
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php

index 9c7c1e8..e657b46 100644 (file)
@@ -1077,7 +1077,7 @@ class TcaSelectItemsTest extends UnitTestCase
         ];
         $moduleLoaderProphecy->modules = [
             'aModule' => [
-                'icon' => PATH_site . 'aModuleTabIcon.gif'
+                'iconIdentifier' => 'empty-empty'
             ]
         ];
 
@@ -1085,7 +1085,12 @@ class TcaSelectItemsTest extends UnitTestCase
             0 => [
                 0 => 'aModuleLabel',
                 1 => 'aModule',
-                2 => '../aModuleTabIcon.gif',
+                2 => '<span class="t3js-icon icon icon-size-default icon-state-default icon-empty-empty" data-identifier="empty-empty">
+       <span class="icon-markup">
+<span class="icon-unify"><i class="fa fa-empty-empty"></i></span>
+       </span>
+
+</span>',
                 3 => [
                     'title' => 'aModuleTabLabel',
                     'description' => 'aModuleTabDescription',