diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php index 4572f2b5d77e5f119049de1d3538f289b7a10630..ee5fa803f1356feef61b7dbf03b48fb0c3a5f88f 100755 --- a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php +++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php @@ -1464,6 +1464,28 @@ class ContentObjectRendererTest extends \TYPO3\CMS\Core\Tests\UnitTestCase $this->assertEquals($expected, $result); } + /** + * @return array + */ + public function stdWrapRawUrlEncodeDataProvider() + { + return [ + 'https://typo3.org?id=10' => ['https://typo3.org?id=10', 'https%3A%2F%2Ftypo3.org%3Fid%3D10'], + 'https://typo3.org?id=10&foo=bar' => ['https://typo3.org?id=10&foo=bar', 'https%3A%2F%2Ftypo3.org%3Fid%3D10%26foo%3Dbar'], + ]; + } + + /** + * Check if rawUrlEncode works properly + * + * @test + * @dataProvider stdWrapRawUrlEncodeDataProvider + */ + public function stdWrap_rawUrlEncode($input, $expected) + { + $this->assertEquals($expected, $this->subject->stdWrap_rawUrlEncode($input)); + } + /** * Data provider for the getQuery test *