You are here

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

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

Parameters

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

Return value

string An absolute URL.

2 calls to ApdqcSessionHttpsTestCase::httpUrl()
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 1015
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 httpUrl($url) {
  global $base_url;
  return $base_url . '/modules/simpletest/tests/http.php?q=' . $url;
}