1 common.test | public CommonBackdropHTTPRedirectTest::testNoHostChange() |
Tests HTTP redirect without downgrade and host change.
File
- core/
modules/ simpletest/ tests/ common.test, line 1211 - Tests for common.inc functionality.
Class
- CommonBackdropHTTPRedirectTest
- Unit tests for processing of http redirects.
Code
public function testNoHostChange() {
$url = 'http://example.com/foo';
$location = 'http://example.com/bar';
$this->assertFalse(_backdrop_should_strip_sensitive_headers_on_http_redirect($url, $location), 'Sensitive headers are not stripped without change of host.');
}