You are here

protected function ApdqcSessionHttpsTestCase::httpsUrl in Asynchronous Prefetch Database Query Cache 7

Builds a URL for submitting a mock HTTPS request to HTTP test environments.

Parameters

string $url: A Drupal path such as 'user'.

Return value

string An absolute URL.

2 calls to ApdqcSessionHttpsTestCase::httpsUrl()
ApdqcSessionHttpsTestCase::testEmptySessionId in ./apdqc.test
Tests that empty session IDs do not cause unrelated sessions to load.
ApdqcSessionHttpsTestCase::testHttpsSession in ./apdqc.test
Test HTTPS sessions.

File

./apdqc.test, line 1001
Tests for the Asynchronous Prefetch Database Query Cache module.

Class

ApdqcSessionHttpsTestCase
Ensure that when running under HTTPS two session cookies are generated.

Code

protected function httpsUrl($url) {
  global $base_url;
  return $base_url . '/modules/simpletest/tests/https.php?q=' . $url;
}