You are here

function SecurePagesTestCase::_toHTTPS in Secure Pages 6

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

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

9 calls to SecurePagesTestCase::_toHTTPS()
SecurePagesTestCase::loginHTTPS in ./securepages.test
Logs in a user using HTTPS.
SecurePagesTestCase::_testAnonymous in ./securepages.test
Tests for anonymous browsing with securepages.
SecurePagesTestCase::_testCachedResponse in ./securepages.test
SecurePagesTestCase::_testFormAlter in ./securepages.test
Tests the ability to alter form actions.
SecurePagesTestCase::_testPathAlias in ./securepages.test
Test redirection on aliased paths.

... See full list

File

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

Class

SecurePagesTestCase
@file Provides SimpleTests for Secure Pages module.

Code

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