You are here

public function QueryParametersToURLTestCase::drupalHeadRawURL in Query Parameters To URL 7

Similar to drupalHead, but without piping to the url() function.

2 calls to QueryParametersToURLTestCase::drupalHeadRawURL()
QueryParametersToURLGlobalRedirectTestCase::testRedirectWithQueryParameters in ./query_parameters_to_url.test
Tests if a path with query parameters gets redirected to the clean path.
QueryParametersToURLTestCase::testRedirectWithQueryParameters in ./query_parameters_to_url.test
Tests if a path with query parameters gets redirected to the clean path.

File

./query_parameters_to_url.test, line 255
Query Arguments To URL tests.

Class

QueryParametersToURLTestCase
General test cases.

Code

public function drupalHeadRawURL($path, array $headers = array()) {
  $out = $this
    ->curlExec(array(
    CURLOPT_NOBODY => TRUE,
    CURLOPT_URL => $path,
    CURLOPT_HTTPHEADER => $headers,
  ));
  $this
    ->refreshVariables();

  // Ensure that any changes to variables in the other thread are picked up.
  return $out;
}