[FOLLOWUP][TASK] Always use Icon API for Module Icons 43/46543/3
authorBenni Mack <benni@typo3.org>
Tue, 9 Feb 2016 09:33:52 +0000 (10:33 +0100)
committerBenni Mack <benni@typo3.org>
Tue, 9 Feb 2016 10:04:29 +0000 (11:04 +0100)
Fixed failing unit tests because of whitespace problems.

Resolves: #73186
Releases: master

Change-Id: I3a25c74c15266c70ff6fdd40f9f371f47be55f21
Reviewed-on: https://review.typo3.org/46543
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php

index e657b46..39b6879 100644 (file)
@@ -1085,12 +1085,7 @@ class TcaSelectItemsTest extends UnitTestCase
             0 => [
                 0 => 'aModuleLabel',
                 1 => 'aModule',
-                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>',
+                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',
@@ -1100,6 +1095,7 @@ class TcaSelectItemsTest extends UnitTestCase
 
         $result = $this->subject->addData($input);
 
+        $result['processedTca']['columns']['aField']['config']['items'][0][2] = str_replace([CR, LF, TAB], ['', '', ''], $result['processedTca']['columns']['aField']['config']['items'][0][2]);
         $this->assertSame($expectedItems, $result['processedTca']['columns']['aField']['config']['items']);
     }