You are here

function SecurePagesTestCase::_toHTTP in Secure Pages 6.2

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

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

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

File

./securepages.test, line 383
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);
}