assertEquals($expected, Url::prependDomain($actual)); } /** * Data provider * * @return array */ public function correctUrlIsDeliveredDataProvider() { $currentDomain = GeneralUtility::getIndpEnv('TYPO3_SITE_URL'); return [ 'absoluteUrlIsUsed' => [ $currentDomain . 'index.php?id=123', $currentDomain . 'index.php?id=123' ], 'relativeUrlIsUsed' => [ 'index.php?id=123', $currentDomain . 'index.php?id=123' ], 'domainOnlyIsGiven' => [ $currentDomain, $currentDomain ], ]; } }