You are here

function SecurePagesTestCase::_toHTTP in Secure Pages 6

Same name and namespace in other branches
  1. 6.2 securepages.test \SecurePagesTestCase::_toHTTP()

Helper function, because url() in D6 lacks 'https' => FALSE

3 calls to SecurePagesTestCase::_toHTTP()
SecurePagesTestCase::_testAnonymous in ./securepages.test
Tests for anonymous browsing with securepages.
SecurePagesTestCase::_testRoles in ./securepages.test
Test role-based switching.
SecurePagesTestCase::_testXHR in ./securepages.test
Test detection of XHR requests.

File

./securepages.test, line 339
Provides SimpleTests for Secure Pages module.

Class

SecurePagesTestCase
@file Provides SimpleTests for Secure Pages module.

Code

function _toHTTP($url) {
  return str_replace('https://', 'http://', $url);
}