[TASK] Unit test to cover stdWrap_stripHTML 42/48242/5
authorElmar Hinz <t3elmar@gmail.com>
Mon, 23 May 2016 07:03:42 +0000 (09:03 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sat, 28 May 2016 09:49:34 +0000 (11:49 +0200)
Resolves: #76261
Releases: master
Change-Id: I64ed81604b92e1c929a5252b396c0d3a21098c2b
Reviewed-on: https://review.typo3.org/48242
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php

index 99f2f55..e08c38d 100755 (executable)
@@ -830,6 +830,18 @@ class ContentObjectRendererTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     }
 
     /**
+     * Test for the stdWrap_stripHtml
+     *
+     * @test
+     */
+    public function stdWrap_stripHtml()
+    {
+        $content = '<html><p>Hello <span class="inline">inline tag<span>!</p><p>Hello!</p></html>';
+        $expected = 'Hello inline tag!Hello!';
+        $this->assertSame($expected, $this->subject->stdWrap_stripHtml($content));
+    }
+
+    /**
      * @return array
      */
     public function stdWrap_roundDataProvider()