1 common.test | public CommonBackdropHTTPRedirectTest::testHttpsDowngrade() |
Tests HTTP redirect with HTTPS downgrade.
File
- core/
modules/ simpletest/ tests/ common.test, line 1184 - Tests for common.inc functionality.
Class
- CommonBackdropHTTPRedirectTest
- Unit tests for processing of http redirects.
Code
public function testHttpsDowngrade() {
$url = 'https://example.com/foo';
$location = 'http://example.com/bar';
$this->assertTrue(_backdrop_should_strip_sensitive_headers_on_http_redirect($url, $location), 'Sensitive headers are stripped on HTTPS downgrade.');
}