Bug #23121 » t3lib_divTest.php.patch
tests/t3lib/t3lib_divTest.php (working copy) | ||
---|---|---|
$this->assertTrue(t3lib_div::isOnCurrentHost($testUrl));
|
||
}
|
||
/**
|
||
* @test
|
||
* @see t3lib_div::getIndpEnv()
|
||
*/
|
||
public function checkEqualityTypo3HostOnlyWithRefererHostEvenUnderInternetProtocolVersion6AddressAsHttpHost() {
|
||
$refHost = parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST);
|
||
$this->assertEquals($refHost, t3lib_div::getIndpEnv('TYPO3_HOST_ONLY'));
|
||
}
|
||
////////////////////////////////////////
|
||
// Tests concerning sanitizeLocalUrl
|