protected function drupalGet($path, array
$options =
[], array
$headers =
[]) { $options['absolute'
] = TRUE;
$url =
$this->
buildUrl($path,
$options);
$session =
$this->
getSession();
$this->
prepareRequest();
foreach ($headers as $header_name =>
$header_value) { $session->
setRequestHeader($header_name,
$header_value);
} $session->
visit($url);
$out =
$session->
getPage()->
getContent();
// Ensure that any changes to variables in the other thread are picked up.
$this->
refreshVariables();
// Replace original page output with new output from redirected page(s).
if ($new =
$this->
checkForMetaRefresh()) { $out =
$new;