diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php index 9215e8f80d176e0edbd0e07f68f45b932d60eb64..e2bf614fd851bf35e3ef23fe18fac6bbcd86ac47 100644 --- a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php +++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php @@ -980,6 +980,40 @@ class ContentObjectRendererTest extends \TYPO3\CMS\Core\Tests\UnitTestCase { $this->assertEquals($expected, $result); } + /** + * @return array + */ + public function stdWrap_expandListDataProvider() { + return array( + 'numbers' => array( + '1,2,3', + '1,2,3', + ), + 'range' => array( + '3-5', + '3,4,5', + ), + 'numbers and range' => array( + '1,3-5,7', + '1,3,4,5,7', + ), + ); + } + + /** + * Test for the stdWrap function "expandList" + * + * @param string $content + * @param string $expected + * + * @dataProvider stdWrap_expandListDataProvider + * @test + */ + public function stdWrap_expandList($content, $expected) { + $result = $this->subject->stdWrap_expandList($content); + $this->assertEquals($expected, $result); + } + /** * @return array */